iftop: add caveats

Closes Homebrew/homebrew#23581.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Eugene San (eugenesan) 2013-10-25 14:57:48 +03:00 committed by Adam Vandenberg
parent 06804ec9cb
commit 69947cd3e2

View file

@ -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