Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Similar questions

19 replies

Jan 14, 2019 3:37 AM in response to cjroe

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.

Jan 15, 2019 2:43 PM in response to cjroe

@leroydouglas It seems that @cjroe doesn't have a recent backup, and likely wants to avoid using Time Machine as (unlike Windows File Restore), Time Machine both overwrites non-vaulted user files as well as creates an unbootable drive.


@cjroe Hey bro, it's me. If you're receiving a basic I/O error on a disk, much like this forum post: https://discussions.apple.com/thread/7837272 . You may have a corrupt hard drive, I'm not a professional expert but it may be a bad sector / block that is causing an I/O, i.e., read/write failure. To my knowledge, this means that a certain sector of the hard drive has failed or become corrupt and either a software lock has kicked in disabling it from copying the data over or otherwise.


Under certain conditions, there may be a fix for you, similar to this thread: https://discussions.apple.com/thread/6049264 . Personally, I cannot advise any software fixes but what may work is,

  • Purchase a new, compatible SSD for your system and an extra SATA cable
  • Install it as a functioning boot drive
  • Install software that copies, bit for bit, information from compromised / invalidated files (like Teracopy or Fastcopy https://www.codesector.com/teracopy / https://fastcopy.jp/en/) And ensure that it is compatible with your system
  • The success of this will hinge on this step: the laptop MUST have an additional SATA slot accessible by the motherboard or otherwise, (SATA to Lightning is a possible solution), install your corrupt hard drive and boot into your clean install on the new hard drive
  • Run file copy software and/or manually copy over all data you want to keep
  • Discard old hard drive


Hope this helps! This is a classic last-ditch troubleshooting problem for failing hard drives. You may not be able to recover all corrupt data. Make sure to properly install a new, clean boot drive. Should have no problems copying over information if you can run both hard drives.

Jan 14, 2019 9:33 AM in response to cjroe

Update:


It appears I do not have the user's .plist file.



which is exact to this issue: https://discussions.apple.com/thread/6428817


Should I copy the plist from a time machine backup? It might be an older version.


Will that mess anything up?


What's confusing here is that hiddenuser.plist I am not sure what this is and I'm wondering if I should attempt to rename it or view the contents.

Jan 17, 2019 7:41 AM in response to Noble_

As a final solution, I went to System Preferences > Users & Groups and used the Right Click > Advanced Options on an existing admin user that I created.


I updated the path to use my existing user folder in my /Users folder. I saved that user and exited then went back to System Preferences.


The user settings were corrupted and it was not a working solution.


Unfortunately, all solutions were a complete failure and I needed wipe my entire disk and reinstall the OS.


Luckily this was not a hardware failure. After I restarted, I was back to a normal machine.


However, I am completely and utterly appalled by Apple's ability to ship stable software and this wasted a week of my life on a software bug due to Mojave. I lost data in the process.


*****



[Edited by Host]

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


Jan 17, 2019 9:28 AM in response to cjroe

If you did not have an adequate and redundant backup plan in place—I would submit to you that you can blame yourself as well.


If you google "3-2-1 backup strategy" for more information.


Whether it be software or a hardware, it is a fact of the computer world there will be failures. Take some responsibility, and please do yourself a big favor before you experience your next failure.


How to create a boot clone: https://discussions.apple.com/docs/DOC-10081




This is a user to user technical support forum—so if you want to address Apple, please follow through


Apple Feedback http://www.apple.com/feedback

also

With your same Apple ID you can sign up for a free Developers Account and start a conversation with Apple engineers


Bug Reporter https://bugreport.apple.com/

also

https://www.apple.com/legal/


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 ID.