Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

mtr: unable to get raw sockets #166

Closed
martyvona opened this issue Dec 1, 2009 · 4 comments
Closed

mtr: unable to get raw sockets #166

martyvona opened this issue Dec 1, 2009 · 4 comments

Comments

@martyvona
Copy link

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

@jezdez
Copy link
Contributor

jezdez commented Dec 2, 2009

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.

@martyvona
Copy link
Author

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.

@joshgoebel
Copy link
Contributor

Is homebrew generally against installing things SUID? I'm just switching things from Macports today and noticing these differences.

Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
@ssbarnea
Copy link

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.

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@Homebrew Homebrew locked and limited conversation to collaborators Jun 26, 2014
ClashTheBunny pushed a commit to ClashTheBunny/homebrew that referenced this issue Jan 22, 2015
This is still a burden on older systems.

Fixes Homebrew#166.

This reverts commit 6599cce.
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants