You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

All users disappear after install

After installing Lion on my 27" iMac (jan 2011 model), i now can no longer login with my user... And yes, i have tried every password i have ever used on my iMac, several times.


I booted in single user mode and ran the commands:

/sbin/fsck -fy

/sbin/mount -uw /

and tried passwd <username>


got a nice error:

passwd: The daemon encountered an error processing request . The daemon encountered an error processing request.


/var/log/system.log shows (typing this over from my screen):


SecurityAgent[192]: User info context values set for USERNAME

SecurityAgent[192]: Unknown user "USERNAME" login attempt PASSED for auditing

UserEventAgent[11]: ServermgrdRegistration cannot load config data

UserEventAgent[11]: ServermgrdRegistration oldConfig is nil during net changed notification



It looks like it can not find my user...



Another thing indicating this, in single user mode:

ls -lha /Users/

...

drwxr-x---+ 501 staff 1.7k Jul 20 16:00 USERNAME



So, it is just completly unable to find my user


Another thing that suggests it lost all my users:

grep -Ri 'USERNAME' /etc/*


returns nothing... but that might not mean to much, as on my macbook, it doesn't either. And i can login there


Apple, *** did you do to my system?

iMac, Mac OS X (10.7)

Posted on Jul 20, 2011 8:45 AM

Reply
30 replies

Jul 20, 2011 9:10 AM in response to pdellaert

Same issue for me - not happy - wish my mini had already had enough RAM to use as the test - I was nt using Filevault - do have a time machine backup - and wsa considering a clean install - but this is a real problem and if there is not an easy fix - this could be a HUGE disaster for LOTS of people. Could be remembered as the OS X upgrade that Apple botched.

Jul 21, 2011 2:05 AM in response to pdellaert

Here's a slightly cleaned up version of the instructions from the MacRumors link above:


• Reboot your mac, hold down Command R just as it chimes (or just as it starts up if you have volume off)

• Select "Terminal" from the Utilities menu

• Type resetpassword and hit Return

• Select root and enter a root password

• Go to Apple Menu > Restart

• Log in as root using the password you just created

• Go in System Preferences > Users & Groups

• Create a new Administrator account using the same exact short name and password as your old user account (same capitalization of short name is important)

• When you accept it will say "The Users folder already contains a folder with the same name as the home folder for this account"

• Select "Use Existing Folder" (and wait for a while if you have a lot of files

• Log out or reboot and you should see your old user there, try logging in

All users disappear after install

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