Skip to content

Instantly share code, notes, and snippets.

@reporter123
Created December 29, 2016 02:50
Show Gist options
  • Save reporter123/a3de73245b5303945a49396e143fc824 to your computer and use it in GitHub Desktop.
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.
#!/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