iftop: add caveats
Closes Homebrew/homebrew#23581. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
06804ec9cb
commit
69947cd3e2
1 changed files with 12 additions and 0 deletions
|
@ -14,4 +14,16 @@ class Iftop < Formula
|
|||
"--mandir=#{man}"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
iftop requires superuser privileges. You can either run the program
|
||||
via `sudo`, or change its ownership to root and set the setuid bit:
|
||||
$ sudo chown root:wheel #{sbin}/iftop
|
||||
$ sudo chmod u+s #{sbin}/iftop
|
||||
|
||||
In any case, you should be certain that you trust the software you
|
||||
are executing with elevated privileges.
|
||||
EOS
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue