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

SUID for MTR #50207

Closed
deseven opened this issue Mar 17, 2016 · 1 comment
Closed

SUID for MTR #50207

deseven opened this issue Mar 17, 2016 · 1 comment

Comments

@deseven
Copy link

deseven commented Mar 17, 2016

Since mtr needs root privileges in order to use raw sockets it would be nice to use setuid for it and to stop wasting time with sudo and password entering. This is a default behaviour in many linux distros along with macports, for example.
sudo chown root:wheel /usr/local/Cellar/mtr/0.86/sbin/mtr
sudo chmod u+s /usr/local/Cellar/mtr/0.86/sbin/mtr

Another way is to use capabilities (setcap/getcap), but it's not available for OS X.

@DomT4
Copy link
Member

DomT4 commented Mar 17, 2016

Feel free to do this yourself, but Homebrew doesn't embed any functionality beyond the initial setup (and even then, it's optional) that requires sudo, and we're not overly comfortable suggesting to users who may not be familiar with the security/usability pros/cons of setuid that they adopt it blindly.

@DomT4 DomT4 closed this as completed Mar 17, 2016
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
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

2 participants