Missing user account in System Preferences (visible in /Users)

I am having issues with a recent issue.


Problem

I was in the middle of a Chrome session and my MacBook froze (beachball). I powered down and powered back on and was prompted with my user to log in (assuming it was the standard user). I was then taken to a second login screen where I had multiple other users but not my user. It was not showing up.


When I logged into one of the other admin users, I was taken to the desktop. I looked in my /Users folder and I was able to see my /Users/myuserfoldername with the correct files inside.


I then went to system preferences and was NOT able to see my user in the system preferences.


I ran a dscl . list /Users | grep -v '^_' command and was not able to see the real user listed.



I have already attempted to create a new user and merge it with the folder, but it did nothing. I have also tried to turn off Filevault which was also not working.


What is going on here and what can I do to fix it?

Macbook (2015 or later)

Posted on Jan 13, 2019 3:10 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 14, 2019 3:37 AM

Related threads:


Attempted Solutions


Restarted into Recovery Mode using CMD+R. From Terminal, ran the command


rm /Volumes/Macintosh HD/var/db/.AppleSetupDone


Restarted the computer. Created a new admin with a different name.


Ran from command in terminal


rm /var/db/dslocal/nodes/Default/users/shortusername.plist


Go into system preferences under Users & Groups and create a New User with the same name for the account. It will ask if you want to Use Existing Home Folder - select Use Existing Folder and all should be well.

Similar questions

19 replies

Jan 15, 2019 11:37 AM in response to cjroe

Can anyone help me or should I just give up on Apple?


I would submit to you that instead of trying to do all the forensics, back tracking and trouble shooting in undoing all the monkeying around that has already taken place—far more simple to restore your mac from Time Machine or other back— to before the problem showed itself.


https://support.apple.com/en-us/HT203981


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.

Missing user account in System Preferences (visible in /Users)

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