From 80d23dab216b9eebef3b9984f2bae393fffc0d50 Mon Sep 17 00:00:00 2001 From: aib Date: Tue, 3 Jan 2017 13:53:04 +0300 Subject: [PATCH] Add "how to run without root" (capabilities note) to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8f73f6d..03f5cd6 100644 --- a/README.md +++ b/README.md @@ -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 ----------------