Macports user on login screen after migration from old Mac to new Mac
ryandesign at macports.org
Fri Aug 5 19:58:41 UTC 2022
On Jul 31, 2022, at 10:01, Murray Eisenberg wrote:
> I used the macOS Migration Assistant to migrate Documents and Settings from a Time Machine backup of that iMac to a new Mac Studio, also running macOS 12.5.
> Now at the login screen I show a user MacPorts, but I do not see such user listed when, in my admin account, I use System Preferences > Users & Groups.
> What, if anything, should be done?
The Migration Assistant moves any migrated users' home directories into /Users. This is wrong for the macports user and any users MacPorts ports created so if you used Migration Assistant to migrate such users you'll have to manually fix the home directories afterward. First you'll have to figure out where the home directory of each user should be (e.g. by reading the Portfile of the port that created the user). Then you'll have to use dscl to change the NFSHomeDirectory of the user to that value. And move the actual home directory on disk from wherever Migration Assistant put it in /Users back to where it should be. It's rather annoying.
More information about the macports-users