#54977 closed defect (fixed)
mtr @0.87 (net) is no SUID anymore (as reinstalled under High Sierra) - now needs root to run
Reported by: | SaintBol | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.1 |
Keywords: | suid highsierra | Cc: | |
Port: | mtr |
Description (last modified by mf2k (Frank Schima))
Reinstalled mtr under High Sierra, and suddenly mtr cannot be run without been root: it cannot open a raw socket. Reason: it's no longer installed with SUID flag.
But, exactly like traceroute, mtr needs to be SUID.
$ ls -l $(which traceroute) -r-sr-xr-x 1 root wheel 38128 21 sep 06:35 /usr/sbin/traceroute
but:
$ ls -l $(which mtr) -rwxr-xr-x 1 root admin 85396 30 sep 20:00 /opt/local/sbin/mtr
Workaround: sudo chmod u+s /opt/local/sbin/mtr
To fix, mtr should be installed with SUID flag (as it was before, and like traceroute is).
Change History (4)
comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)
Keywords: | said highsierra added; mtr suid removed |
---|---|
Port: | @0.87 (net) removed |
comment:2 Changed 7 years ago by Schamschula (Marius Schamschula)
Note: I installed mtr with suid. I get the following error message: mtr: mtr should not run suid
It looks like mtr-packet needs to be set suid instead.
comment:3 Changed 7 years ago by Schamschula (Marius Schamschula)
Owner: | set to Schamschula |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 Changed 7 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Keywords: | suid added; said removed |
Note: See
TracTickets for help on using
tickets.
See: https://trac.macports.org/ticket/54963