Providing user as argument using -Z

For certain distributions running tcpdump without providing -Z (user) argument
causes the provided command to be executed as the `tcpdump` user which has low
privileges by default.
This commit is contained in:
Syed Umar Arfeen 2019-09-23 07:04:05 +05:00 committed by Andrea Cardaci
parent 47f4fb064c
commit c37da57373

View File

@ -17,5 +17,5 @@ functions:
TF=$(mktemp)
echo "$COMMAND" > $TF
chmod +x $TF
sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF
sudo tcpdump -ln -i lo -w /dev/null -W 1 -G 1 -z $TF -Z root
---