Stuck at user login after migration assistant changed userID from 501 to 502

I just recently purchased a M2 Mac Mini with Sonoma.

I used Migration Assistant to transfer my data from my previous Mac Mini.

The transfer was reported as successful - but there was a final message that "it was necessary to change the user ID from 501 to 502" - and that since I am using a relocated home directory, permissions may need to be manually updated.

Now, after I attempt to login I am stuck at the spinning wheel...

My home directory has been on an external HDD with my previous mac mini.

I am assuming that I am stuck at login due to this change in userID and permissions...


Any suggestions how to fix this?


Thanks -

Mac mini (M2 Pro, 2023)

Posted on May 12, 2024 2:17 PM

Reply
13 replies

May 13, 2024 10:13 PM in response to Michael Cucka

I've never changed the location of my macOS home user folder after I realized how risky & difficult it was with macOS. Yes, I know it is possible to have this customized configuration, but it is a totally unsupported configuration (Apple actually broke this configuration several times with several Monterey updates a few years ago). Plus some macOS utilities such as Migration Assistant are not really compatible with such a custom setup since I have seen other users report issues trying to restore such a custom configuration from a backup. I think someone actually had problems restoring from a backup or migration when they bought a new Mac and wanted to only use the internal drive.


macOS *nix permissions are based on a mix of short user names and UserIDs. Most places in macOS will have permissions based off of the UserID and not the short user name, but there are some exceptions. I'm not sure how your system is currently configured after the migration. Are all of the working macOS user accounts now located on the internal boot drive?


When you migrated, did it place all your documents onto the home user folder on the internal drive?


I think the best way to re-link the home folder on the external drive is to start over again with a clean install of macOS which involves first erasing the disk (or rather Volume Group for an M-series Mac) followed by reinstalling macOS. When going through Setup Assistant on first boot to the clean OS, create a dummy admin user account. This is so when you perform the migration this time you will have a macOS user account with the correct UserID to access the external home folder, plus the system settings should be correct as well as related to this migrated user account. If this migrated user account can still access the contents of the external home folder, then you can use the instructions in the following Apple article to re-link this macOS user account to the external home folder just like you did when you first moved the home folder to the external drive (every step is important):

Change the name of your macOS user account and home folder - Apple Support


This is my best guess to a solution since I've never done this on a Mac. You need macOS to have the proper settings for your user account (beyond just accessing the data on the external home folder) and this is the best way I can think to preserve it. Unfortunately I cannot explain the reasons since it is complicated and I'm tired.


I hope you really do have a good backup where the files are accessible.


Also, things are even more complicated with M-series Macs since they have introduced a new concept of ownership. I've seen multiple posts on this forum regarding macOS "ownership" issues with more basic setups, so be prepared for it since I don't know how things will go with this customized setup especially when you cannot migrate/restore directly.

Hopefully someone will correct me if I'm wrong or has a better option. I don't think too many contributors have had to deal with such a setup.


May 14, 2024 6:23 PM in response to Michael Cucka

Michael Cucka wrote:

I have used a relocated home directory since Monterey. I wouldn't say the configuration is unsupported since Apple provides the means to accomplish the relocation simply in the user settings.

Oh, it's totally unsupported. 😄

But certainly it has run into issues with some updates, such as Ventura and 13.3.

And Sonoma.


First the basics, transferring a relocated home directory may simply not be possible. As I said, it's not supported. Just because Apple documented something, or even provided a way to do something, at one point in the past (or present) doesn't mean anything. The Mac has been dead for some time now. We are all using iPhones with big displays and hard-wired keyboards. Well, I guess if you're using a Mini then you essentially have an iPhone with AC power instead of a battery. But you get the idea. The "macOS" we are all using is just iOS with a few of the old macOS parts hacked in. Apple is going to try to ensure that the system works with the most common configurations. So people who've done funky things like move home directories, setup alternate boot drives, etc. are going to be SOL.


In theory, I don't see why this should fail. But you have to remember that it's already hacked, you can't do any kind of standard system configuration on it. What you will have to do is setup the system from scratch. Then, just swap out the location of the new home directory for the old, external one. If you had multiple accounts, then you may need to create one or more burner accounts on the new system until you get to the same UID as the old external user. Don't try fancy things like migration. That's never going to work. But you shouldn't have to change any permissions on any files.


You will have to make sure that the external still has ownership enabled. This is critical. There are some low-level operations like cloud services that require this. Unfortunately, it also buggy. I've heard that externals tend to regularly and repeatedly lose their ownership enabled settings lately.


And finally, this simply isn't a good idea anyway. Apple has been making significant file system and permission changes under the hood since people started trying these kinds of hacks. I just don't know if any of these funky new Apple artifacts like Data Vaults would survive this kind of hack. Home directories should be on the boot volume. If you need more storage, external drives still work just like they always did. In that fashion, they are still supported. They are where you can archive and store big files that you don't need on the boot volume.


But you have to consider material conditions. Apple has all the customers it needs - more than it needs really. Apple would rather not be in this new legal "gatekeeper" regulatory position that it finds itself it. So it seems reasonable that Apple is going to want to "curate" its customer base - separate the wheat from the chaff, keep the whales, throw back the minnows. Those users who don't do funky things with home directories, who buy big hard drive upgrades at times of purchase, will find themselves well-supported - other people, not so much. If you really depend on Apple products, purchase wisely.


May 14, 2024 7:23 PM in response to Michael Cucka

Michael Cucka wrote:

I have used a relocated home directory since Monterey. I wouldn't say the configuration is unsupported since Apple provides the means to accomplish the relocation simply in the user settings.

The "Advanced" section where macOS allows you to modify those settings has been a core part of *nix for decades and macOS is built upon it. The only official Apple documentation pertaining to this "Advanced" option area is to allow changing the macOS user account name....that is it. Here is the Apple article:

Change the name of your macOS user account and home folder - Apple Support


Just because that interface allows you to relocate the actual home user folder does not indicate the configuration is supported. If the configuration was supported, then you would not be here trying to fix it since you would have been able to restore from your backup without any issues.


Keep in mind that those Advanced options you used are old *nix based options which macOS inherited. Apple is not focused on *nix features these days. Apple's focus are on the higher levels and user experience Apple has designed with default options. The more recent privacy & security features are locking things down more & more in macOS (for good & bad sometimes). It would not surprise me if Apple completely removed access to those Advanced options at some point.


Apple does provide official documentation for users to relocate their Photo Library, Music Library, and Video Library to external media. For anything else it should be a simple matter of just storing the data on a simple external data drive.


I was in the process of replying when I noticed @etresoft's response. I was responding in a similar manner regarding the direction of macOS becoming iOS and the Apple laptops are just glorified iPads without a touch screen although I guess side car sort of adds a touch screen in a way.


@etresoft is much more familiar with the inner workings of macOS than I am so I will defer to their experience in this area. From what @etresoft mentions, you should just be able to take that new macOS user account you mentioned previously which can access the files on the external drive and use the linked Apple article I provided to point this user account to the home user folder on the external drive.


FYI, in my own personal experience supporting my organization's Macs, I find it is best not to deviate too far from macOS defaults because the default configuration is the only configuration that Apple tests, but in recent years I'm doubting Apple does much testing since I find even basic aspects of macOS to be broken (especially beginning with macOS 10.15 Catalina & getting worse with each new release....same with the hardware). There are a lot of things people have done with macOS for decades which are no longer possible (or are becoming more difficult to maintain). Even a simple bootable macOS external drive is no longer simple or reliable these days (I'm not even talking about bootable clones).


I wish you luck in recovering your system.

May 12, 2024 6:03 PM in response to HWTech

Thanks -

Unfortunately the safe boot remains stuck at login as well.


I reinstalled the OS on the new mac mini - transferring my old mac data on the first boot so that the userID remained unchanged as 501 - but still remains stuck at login.


I had 2 user profiles on my old mac - one my working profile that has the home directory on an external drive, and a second for emergencies that wasn't relocated off the boot drive. Both were transferred, but only the relocated user profile is stuck at login - the other logs in normally.

May 13, 2024 5:14 AM in response to Michael Cucka

In follow-up...


I am able to create a new user on my new mac mini and point its home directory to the same external HDD without any issues.


When I do that, the old relocated home directory folders no longer show "prohibited" icons. And although some of my old content is now available in the new user, not all of it is.


Is it possible to now move content between the folders at this point and still maintain permissions, etc?


Thanks -

May 14, 2024 3:57 PM in response to HWTech

Thanks for your helpful considered reply!


I have used a relocated home directory since Monterey. I wouldn't say the configuration is unsupported since Apple provides the means to accomplish the relocation simply in the user settings. But certainly it has run into issues with some updates, such as Ventura and 13.3.


I'm in the process of trying something similar to what you suggest - reinstalling Sonoma and using setup asst to see if I can access the relocated home directory. I've come across posts elsewhere with the same issue as mine having success transferring from a Time Machine backup instead of the external HDD itself. The process is time-consuming since I am offloading many files from the old home directory in order to trim it down to fit on the boot volume after the fresh install. Luckily I have numerous redundant backups :-)


It is all a bit maddening since the files are available - but Apple doesn't make it easy to move them from one directory to another...


Appreciate the help!

May 15, 2024 4:47 AM in response to HWTech

Thank you etresoft and HWTech -


I first began using the relocated home folder with my old 2018 mac mini when internal HDDs became non-upgradeable. Although I could migrate a lot of the user data to external HDDs like documents, photos, etc - my user Library contains around 500GB, and between that and the System and Apps, even with an upgraded 1TB internal SSD space was limited - and not an option with standard 500GB internal drives.


I understand the unsupported issue with relocating the home folder. But for us basic users, there is no obvious difference between using "advanced options" to rename the home folder and account as being supported versus relocating the folders as non-supported since they both appear in the same option pane.


But certainly the MacOS is becoming more of an iOS, so no doubt any of these "options" will break more and more as updates progress...


I am attempting the fresh install so I can have my home folder on my new Mac Mini on the boot drive. I am still space limited since my M2 Mac Mini came with the basic 500GB internal SSD - since I hoped I could use the same relocated home directory config as my old mac. So I have an expansion enclosure that accommodates SSD drives and I have a 1TB SSD that I will use for the fresh install and new home directory.


Still unclear about the best way to bring my old user folder data back onto the new boot drive. From what has been mentioned, it sounds like I can try copying the old folder to the new folder. Can this be done just using the existing accounts - they both have the same username and userid - or the "rename" process also mentioned.


Thanks for everything!

May 16, 2024 2:53 PM in response to Barney-15E

Not sure how to answer that question...


I've carried my home folder thru many generations of macs over many years. As I have been going thru this current process, I have begun pruning all the folders in my home directory - although many items in Library aren't intuitive.


As I mentioned above, my current migration took place after a fresh install on a 1TB SSD I have installed on an attached enclosure - that is how I have bypassed the limitation of non-upgradeable internal drives on macs in recent years.

May 17, 2024 1:56 AM in response to Barney-15E

Simple - I never had reason to check as I was never space-limited on internal drives until recent macs.


Just like my Downloads folder had grown to over 1TB before I got around to cleaning it out.


When internal HDD were upgradeable, I'd simply swap an xTB HDD - so I never had a reason to check on the size of any folder in my home directory - so "why" was never a concern.


But I have some pruning in my future... ;-)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Stuck at user login after migration assistant changed userID from 501 to 502

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.