Added 'Running without root' section to the man page
This commit is contained in:
@@ -72,6 +72,24 @@ sort by 'sent'
|
|||||||
q
|
q
|
||||||
quit
|
quit
|
||||||
.RE
|
.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"
|
.SH "SEE ALSO"
|
||||||
.I netstat(8) tcpdump(1) pcap(3)
|
.I netstat(8) tcpdump(1) pcap(3)
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
|
|||||||
Reference in New Issue
Block a user