[MacPorts] #70938: macports-base does change the default users home path in some cases

MacPorts noreply at macports.org
Fri Sep 27 07:22:51 UTC 2024


#70938: macports-base does change the default users home path in some cases
----------------------------+---------------------
  Reporter:  christophecvr  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  base           |    Version:  2.10.99
Resolution:                 |   Keywords:
      Port:                 |
----------------------------+---------------------

Comment (by christophecvr):

 Replying to [comment:3 jmroot]:
 > Also it's not used when not running as root because `seteuid` doesn't
 work. We could add some anti-foot-shooting checks. Maybe warn and ignore
 the `--with-macports-user` value if `--with-no-root-privileges` is used,
 and also reject it if the specified user is a login user?

 Yes it was just a try of me ,
 My goal with this was to change the build phase user-id which is done by
 macports with user-id macports.( on it a logic thing since building in
 general is not supposed to be done with super-user if)
 Of course the install phase is as root user or at least if the goal is to
 install in the system paths /usr/local /opt/local and yes in linux systems
 also /bin /sbin /usr/bin /usr/lib by macos those last are extra protected.

 But ok now I know that there is more behind then just that in macports
 with the consequences ...

 I think it's not a bad idea to:

 - mention it in manual
 - the reject if the specified user is a login user, sounds like a good and
 save idea.

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


More information about the macports-tickets mailing list