OS X 10.7 & 10.8: Resetting Lost Account Passwords

| TMO Quick Tip

If you forget an account password in Lion or Mountain Lion, there are lots of ways to reset it. The first, easiest way starts like this: Open System Preferences > Users & Groups, click on the lock at the bottom-left of the window to unlock the pane, and then enter an administrator's name and password so you can edit things.

After that, click on the account you've forgotten the password for and choose Reset Password.

Then OS X will ask you to enter the new password.

Seems simple, right? But there are a few caveats here. First, as the box above points out, resetting a lost password won't change the login keychain password for that account. This means that the user's keychain—which stores things like email passwords for Apple Mail, Wi-Fi passwords, and so on—won't be usable unless you recover that original password. Bummer. Unfortunately, you'll have to re-enter all of those passwords in a new keychain, which OS X will prompt your user to create the next time he logs in.

Second caveat: You can't reset the password on an account you're currently logged into unless you know the existing password, so log into a different user account if you need to make changes. (But if the sole administrator password is the one you've lost, see below.)

Lastly, the account you're trying to work with can't be logged in using fast user switching. See how my "karma" account is greyed out in the second screenshot above, with an orange checkmark next to its picture? That's because it's still logged in, so if I need to reset that user's password, I'll have to log him out first.

OK, so here's a pickle. What if the password you can't remember is your administrator password, and it's the only administrator account on your Mac? That'll mean that when you try to log in as a different user, you can't even unlock the System Preferences pane because you don't know the only existing administrator password! You're totally screwed, right? Well, maybe, but not where your Mac is concerned. If you set things up ahead of time, you can use your Apple ID to reset that password, and I wrote an article on how to do that a while back.

But if you didn't configure that before you forgot the password, you're still OK, because there's a super-secret ninja way to get around those restrictions. You're going to need to log in to your Mac's Recovery System, and you do that by holding down Command-R while your machine's restarting.

(Bear with me—as far as I know, you can't take screenshots in the Recovery System, and I just couldn't bring myself to take pictures with my phone and use them here.)

When you see the Apple icon appear on your screen, you can release Command-R. Once your Mac finishes booting, you should see a bunch of troubleshooting options that are very handy when your Mac's having trouble, like Restore from Time Machine Backup, Disk Utility, and Reinstall OS X. What you want to choose for our purposes, though, is Utilities > Terminal from the menu at the top of the screen.

When Terminal opens, type in the following, all lowercase with no spaces:


Afterward, you'll get a nifty little program in which you can choose the volume (usually "Macintosh HD") containing the user account with the missing password. You'll then select the account and enter a new password for it.

OK, so I totally lied. That's an ugly picture from my phone. I just can't be trusted, and I apologize.

Choose Save, and you're done! Then just go up to the Apple menu and hit Restart.

As before, resetting the password in this way will not change that account's keychain password, so the worst-case scenario is that you'll lose access to that. I sincerely hope that you know all of your email passwords if that's what happens. In any event, though, pretty much anything is better than not being able to log in at all. Except, perhaps, your Mac blowing up or becoming sentient or something.

Popular TMO Stories



I did reset my mac admin password by the method explained above. It than asked me if I want to make a new keychain I clicked Yes. Does it means that resetting mac password also resetted keychain passwords? if Yes will now I be able to save further password email id’s on my admin account?

Melissa Holt

Hey Himanshu,

What that means is that your old keychain—the one with your old stored info—is lost if you can’t remember that password. But yep, from now on, you should be able to re-save password info into the new keychain.

Hope that helps!


Yes it certainly helped. Thanks Melissa.


Thank you, I’ve just used your advice.
This help me a lot.


Ian Cabrera

Hi miss Melissa.I’m just hanging around to take some questions regarding on password. I got mac few days ago from somewhere. I know the administrator password.but I didn’t know the master password , is there’s anyway to change the master password without losing my mac?


Kristina Stone

Hi, I know this post was a while ago, but in hoping you can help. I was trying reset my login password as I was in the pickle situation you specified where I am the only iser and administrator that cannot remember the password to be able to reset it. I switched from my desktop screen, which I was logged in on, to a log in screen which asked me to enter my log in password. Per the advice of another site, it was supposed to give me a prompt to reset after three incorrect attempts. It didn’t do this, however, and I am now stuck on this log in screen and can’t get back to my desktop. Any help you can offer would be greatly appreciated. I will note that if I click on the user icon above the username (Mine is a pink flower), it produces an orange check mark beside the username and the password box disappears. There are also the options to sleep, restart or shut down at the bottom of the screen, a Id which I am terrified to do for fear I’ll lock myself out of my computer. I’ve seen several forums that said people had contacted Apple support and received no help whatsoever. I’m a little desperate as I use my computer for school. Any advice would be greatly appreciated!!!

Log in to comment (TMO, Twitter or Facebook) or Register for a TMO account