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.
master
Syed Umar Arfeen 2019-09-23 07:04:05 +05:00 committed by Andrea Cardaci
parent 47f4fb064c
commit c37da57373
1 changed files with 1 additions and 1 deletions

View File

@ -17,5 +17,5 @@ functions:
TF=$(mktemp) TF=$(mktemp)
echo "$COMMAND" > $TF echo "$COMMAND" > $TF
chmod +x $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
--- ---