Quantcast

Reset a lost OS X account password in single user mode

Ivan's picture

Remember, only use this if you have lost the Mac OS X install DVD. Also, don't do this if you have FileVault enabled in your account, and note that this will not change your keychain password.

First, we need to restart in Single User mode. To do this hold down Command-S while the computer is starting up. A command line prompt should appear on the screen instead of the login window or your normal desktop.

At the prompt, type mount -uw / then return. Next, type
launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
then return. You will need to type these exactly the same, so write them down beforehand.

The next step requires you to know the short username of the account. If you don't know this, type ls /Users followed by return, and look for it in the list that appears.

Next, type dscl . -delete /Users/username AuthenticationAuthority followed by return. Make sure you replace username with the short username of the account.

The final command to type is passwd username followed by return. As before, replace username with the short username of the account.

The rest is self-explanatory. Type the new password, followed by return. When prompted, retype the password.

Finally, type reboot and hit return! Your password should be reset.

natobasso's picture

Very helpful! I'm sure there

Very helpful! I'm sure there are many a designer out there who lose their system disk and need this tip. :)

----
Powerpoint is not a design application

ireid's picture

Couldnt you just

Boot in target firewire mode from another machine and then take all the data off. Format and reinstall?

Hmmm I guess that MIGHT be a LONG way to do it!

"Try not, Do! or do not, there is no try."
-Yoda

User login

Partner With Us













Latest critique

made suggested changes