Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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: newclosed

In 17a017e6953872e817baee6a6ce0dc032fdc456c/macports-ports:

mtr: update to version 0.92, set mtr-packet suid

Closes: #54977

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.