[MacPorts] #70680: sudo @1.9.16 -- sudo: port: command not found

MacPorts noreply at macports.org
Wed Sep 4 13:19:15 UTC 2024


#70680: sudo @1.9.16 -- sudo: port: command not found
---------------------+--------------------
  Reporter:  RobK88  |      Owner:  (none)
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.10.1
Resolution:          |   Keywords:
      Port:  port    |
---------------------+--------------------

Comment (by RobK88):

 If you want to keep the upstream change, at minimum you will need to
 prefix `/opt/local/bin:/opt/local/sbin:` to `$PATH`.

 FYI, here is my `$PATH`.  Pretty standard.  Note the `/opt/X11/bin` at the
 end of `$PATH`


 {{{
 /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
 }}}

 Setting `secure_path` will certainly make `sudo` more secure.   But I
 would add a note to the notes section of the Portfile


 {{{
 notes "
 To complete the installation, run:

 \t${prefix}/bin/sudo ${prefix}/sbin/visudo

 Edit as necessary. (See the sudoers manpage for additional information.)

 Please note that you may need to edit 'defaults secure_path' in the
 sudoers file if you use a non-standard $PATH value
 "
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70680#comment:25>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list