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