[MacPorts] #54977: mtr @0.87 (net) is no SUID anymore (as reinstalled under High Sierra) - now needs root to run

MacPorts noreply at macports.org
Mon Oct 2 23:28:28 UTC 2017


#54977: mtr @0.87 (net) is no SUID anymore (as reinstalled under High Sierra) - now
needs root to run
----------------------+-----------------------------
 Reporter:  SaintBol  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.4.1
 Keywords:  mtr suid  |       Port:  mtr @0.87 (net)
----------------------+-----------------------------
 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).

--
Ticket URL: <https://trac.macports.org/ticket/54977>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list