From ecfdfc91b267b9d82ab506caae8057a3f70338d9 Mon Sep 17 00:00:00 2001 From: Eugene San (eugenesan) Date: Fri, 25 Oct 2013 14:57:48 +0300 Subject: iftop: add caveats Closes #23581. Signed-off-by: Adam Vandenberg --- Library/Formula/iftop.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library') diff --git a/Library/Formula/iftop.rb b/Library/Formula/iftop.rb index 5fd9bf93a..6b4deaefa 100644 --- a/Library/Formula/iftop.rb +++ b/Library/Formula/iftop.rb @@ -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 -- cgit v1.2.3