2014-04-01 16:39:47 +02:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2014-04-01 16:51:02 +02:00
|
|
|
chgrp wireshark usr/bin/dumpcap
|
2014-04-01 16:39:47 +02: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
|