We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
2,862 Tutorials

How to reset a login password

Reader Ed Grotewahl would like to do a good deed for a family member, yet finds the path to doing so obscured. He writes.

My daughter has forgotten her login password. I know in the past you could reset the password by booting from the OS X installation disc and using a Reset Password command but now that there are no such installation discs I don't know how that works under Mountain Lion.

Fortunately this feature is still available but not in the obvious way it once was. Do this:

Restart the Mac and hold down Command-R to boot into Mountain Lion's Recovery HD partition. From the menu choose Utilities > Terminal, and in Terminal type resetpassword and press Return.

A Reset Password window appears that lists all the bootable volumes attached to your Mac (see image above). Select the volume that contains the account you want to reset. (If the Mac has just the startup drive, that's the only volume that will appear.) Locate the Select the User Account pop-up menu in the window and choose the user name that needs its password reset. Enter and verify a new passwords in the appropriate fields and, if you like, enter a password hint. Click Save and the new password is applied to the account.

When you log into this account you'll be told that the system was unable to unlock your login keychain--that's because it's locked using the old password. Your choices are Continue Log In, Create New Keychain, and Update Keychain Password. As you don't have the old password the Update Keychain Password command does you no good. (As it will prompt you for that old password in order to use the original login keychain.) In regard to a login keychain you'll want to start from scratch so choose Create New Keychain. This will create a new login keychain where her the passwords she adds in the future will be stored.

IDG UK Sites

iPad Air 2 release date, price, specs, new features: world's thinnest tablet also gets Touch ID

IDG UK Sites

Why you shouldn't buy the iPad mini 3: No wonder Apple gave it 10 seconds of stage time

IDG UK Sites

Will Photoshop work with Yosemite? And will Illustrator, After Effects, Premiere Pro or the other A?......

IDG UK Sites

Should I upgrade from Mavericks to OS X 10.10 Yosemite? What you need to know before updating to...