Created
December 29, 2016 02:50
-
-
Save reporter123/a3de73245b5303945a49396e143fc824 to your computer and use it in GitHub Desktop.
Makes itop and wireshark work withouth root. Requires a linux kernel with capabilities enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
setcap "CAP_NET_ADMIN,CAP_NET_RAW+eip" `which iotop` | |
setcap "CAP_NET_ADMIN,CAP_NET_RAW+eip" `which dumpcap` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment