Skip to content

Commit

Permalink
tcptraceroute: add caveats about sudo
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#21277.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
jocar authored and adamv committed Jul 17, 2013
1 parent bff639d commit e01fcc1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Formula/tcptraceroute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@ def install
"--mandir=#{man}"
system "make install"
end

def caveats; <<-EOS.undent
tcptraceroute 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}/tcptraceroute
sudo chmod u+s #{sbin}/tcptraceroute
In any case, you should be certain that you trust the software you
are executing with elevated privileges.
EOS
end
end

0 comments on commit e01fcc1

Please sign in to comment.