Permalink
Browse files

Merge pull request #114 from aib/master

Add "how to run without root" (capabilities note) to README
2 parents 6e59fdf + 80d23da commit 262799a36b21a8b785e910888ef976970d9526ae @raboof committed on GitHub Jan 3, 2017
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
@@ -75,6 +75,12 @@ If you want to remove Nethogs from your system, you can:
sudo make uninstall
+### Running without root
+
+In order to be run by a non-root user, nethogs needs the `cap_net_admin` and `cap_net_raw` capabilities. These can be set on the executable by using the `setcap` command, as follows:
+
+ sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/nethogs
+
Coding standards
----------------

0 comments on commit 262799a

Please sign in to comment.