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
parent
47f4fb064c
commit
c37da57373
|
@ -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
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue