From 0c58ff94d3405c7e510eb288f27af0cfa31ece43 Mon Sep 17 00:00:00 2001 From: Joey Sabey Date: Thu, 25 Apr 2019 18:45:19 +0100 Subject: [PATCH] Added 'Running without root' section to the man page --- doc/nethogs.8 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/nethogs.8 b/doc/nethogs.8 index a333ae7..e54f06c 100644 --- a/doc/nethogs.8 +++ b/doc/nethogs.8 @@ -72,6 +72,24 @@ sort by 'sent' q quit .RE + +.SH "RUNNING WITHOUT ROOT" +In order to be run by an unprivileged user, +.B nethogs +needs the +.I cap_net_admin +and +.I cap_net_raw +capabilities. These can be set on the executable by using the +.BR setcap (8) +command, as follows: +.PP +.in +4n +.EX +sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/nethogs +.EE +.in + .SH "SEE ALSO" .I netstat(8) tcpdump(1) pcap(3) .SH AUTHOR