[MacPorts] #66724: Mac OS Ventura Update asks for MacPorts password, password unknown

MacPorts noreply at macports.org
Thu Jan 26 15:44:31 UTC 2023


#66724: Mac OS Ventura Update asks for MacPorts password, password unknown
----------------------------------+---------------------
  Reporter:  ChristianPfeiferPhD  |      Owner:  (none)
      Type:  defect               |     Status:  new
  Priority:  Normal               |  Milestone:
 Component:  base                 |    Version:
Resolution:                       |   Keywords:  ventura
      Port:                       |
----------------------------------+---------------------

Comment (by ryandesign):

 When I search the Internet for `eDSPermissionError` I find information
 about secure token, a macOS security feature I don't know a lot about. It
 sounds like you might get this error if you try to delete the only user on
 your system that has the secure token attribute. I found instructions for
 how to check if your other admin accounts have secure token, and, if not,
 how to add it. If that's the situation for you, you should be able to
 delete the macports user after another user has been granted secure token.
 Then, running the MacPorts installer will recreate the macports user.

 With my limited knowledge of secure token it doesn't seem like the
 macports user should ever have been granted that permission, but perhaps
 the migration assistant erroneously added it when you migrated from the
 old computer. I do know that the migration assistant does not handle the
 macports user well, nor the other user accounts that various MacPorts
 ports might create: if I remember correctly, migration assistant renumbers
 the user ids into the range used for normal user accounts so that the
 accounts become visible in the Users & Groups preference pane and
 elsewhere (whereas we created them in a different id range so that they
 would be hidden normally) and relocates their home directories into /Users
 where they don't belong. For proper functioning of MacPorts, you should
 move those home directories back where they belong and use `dscl` to edit
 the `NFSHomeDirectory` attribute back to what it should be. There is
 unfortunately no easy way to determine where each home directory belongs.
 The macports user's home directory belongs at /opt/local/var/macports/home
 but deleting the macports user and letting the installer recreate it
 should recreate that directory for you; you can then delete
 /Users/macports. For any other MacPorts ports' users you'll have to
 examine the code of each Portfile to see where the home directory should
 be.

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


More information about the macports-tickets mailing list