[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
Tue Oct 3 13:37:46 UTC 2017


#54977: mtr @0.87 (net) is no SUID anymore (as reinstalled under High Sierra) - now
needs root to run
-----------------------+-----------------------------
  Reporter:  SaintBol  |      Owner:  Schamschula
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:  fixed     |   Keywords:  suid highsierra
      Port:  mtr       |
-----------------------+-----------------------------
Changes (by mf2k):

 * keywords:  said highsierra => suid highsierra


Old description:

> 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).

New description:

 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#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list