2014-04-01 14:39:47 +00:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2014-04-01 14:51:02 +00:00
|
|
|
chgrp wireshark usr/bin/dumpcap
|
2014-04-01 14:39:47 +00:00
|
|
|
/usr/sbin/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' usr/bin/dumpcap
|
|
|
|
cat <<_EOF
|
|
|
|
=================================================================
|
|
|
|
|
|
|
|
You should also add your user to the 'wireshark' group to be able
|
|
|
|
to capture traffic
|
|
|
|
|
|
|
|
==================================================================
|
|
|
|
_EOF
|
|
|
|
;;
|
|
|
|
esac
|