-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
mtr: unable to get raw sockets #166
Comments
Agreed, it really shouldn't be in bin/ additionally, I've fixed this here: http://github.com/jezdez/homebrew/commit/574658149cc64ad98c02de447b4fd546fcee593a Regarding the access to raw sockets I usually just call mtr with sudo given the fact I run brew without sudo in ~/.local. |
As I said, I'm new to os x. On ubuntu mtr runs fine with regular user perms, no need to sudo (the mtr exec is installed setuid root). Up to you as far as what the correct behavior should be for os x. |
Is homebrew generally against installing things SUID? I'm just switching things from Macports today and noticing these differences. |
Can someone find a fix for this, or at least one workaround? Cant we make mtr run with sudo by default? how? What is even worse is that the message does not say anything about the cause. |
This is still a burden on older systems. Fixes Homebrew#166. This reverts commit 6599cce.
mtr installs cleanly but fails at runtime with "mtr: unable to get raw sockets"
this can be worked around by making the executables setuid root. However, setuid is often avoided for security reasons; I am new to brew (and os x) and don't know if there is any better option. I also don't know why mtr builds both bin and sbin versions of itself
chmod 4755 /usr/local/Cellar/mtr/0.75/bin/mtr
chmod 4755 /usr/local/Cellar/mtr/0.75/sbin/mtr
sudo chown root /usr/local/Cellar/mtr/0.75/bin/mtr
sudo chown root /usr/local/Cellar/mtr/0.75/sbin/mtr
The text was updated successfully, but these errors were encountered: