4 Ways To Reset Your OS X Account Password

Shujaa Imran 29-05-2014

Let me guess: You forgot your OS X login password. Don’t panic! There are four different ways to regain access so one is bound to work for you. Each of the techniques covered are quick and easy, and won’t keep your waiting. Check them out below.



Use “Users & Groups” In System Preferences

The main (and most obvious) method of resetting your OS X account password is to use the Change Password option in System Preferences. While this is the easiest option, you’ll need an administrator password. If you don’t have one (and there’s a chance you don’t, you’re reading this article after all), skip to one of the other methods outlined below.

1. Open up System Preferences. You can either do this via the dock, Apple menu, Spotlight or by navigating to Applications > System Preferences.


2. In System Preferences, locate and click on Users & Groups.



3. Once the Users & Groups window opens, click on the lock icon in the bottom-left corner to allow changes to be made.


A new window will open, and it’s here where you’ll need to enter any admin’s name and his or her password. Only accounts with administrator privileges will work here, ideal if the password you’ve forgotten is for a regular user account – not so much when you’re the sole administrator.



4. Once the admin password is open, select the account you want to reset from the left-hand pane.


5. Now, click on the Reset Password option next to the account picture, as shown below:


Reset-Password-OS-X-Terminal-Method-Change-Password6. In the opening window, enter a new password for your account.


Tip: Use a good password hint, as this can be very useful in the future. You can refer to our guide to make secure and memorable passwords 13 Ways to Make Up Passwords That Are Secure and Memorable Want to know how to make up a secure password? These creative password ideas will help you create strong, memorable passwords. Read More .

Use OS X’s Password Recovery Utility To Reset Your Password

Our second method is to use OS X’s Password Recovery utility to reset your account’s password. To do this, you need to boot to your Mac’s recovery drive.


1. If your Mac is on, shut it down.

2. Press your Mac’s power button to power it up.

3. Immediately, press the “Command+R” to boot to OS X’s Recovery Drive.


Note: If you’re using a Bluetooth keyboard, be sure to press the keys mentioned above after you hear your Mac’s startup chime, as the Bluetooth drivers aren’t activated before the chime.

4. Once the OS X Utilities window has opened up, select Terminal from the Utilities menu, as shown below.


5. Enter the following command into Terminal: resetpassword

Press Enter, and the Password Recovery Utility should open. Here, select the volume, which contains the user account (Macintosh HD by default), the account name, and enter a new password. Remember to keep Terminal open while doing all this.

Once done, click on Save.

6. Restart your Mac, and you should now have access to your account through the password you just set.

Reset Your OS X Account Password Using An Apple ID

While the above methods have their own conveniences, you can also associate your OS X account with an Apple ID, and use that as a means to reset your password. First, you need a valid Apple ID linked to your account. So, if you don’t already have an Apple account, create one, and associate it with your account by follow the steps outlined below.

Note: This won’t work without access to an administrator account (with password) unless you have already associated your user account with an Apple ID.

Associate An Apple ID With Your OS X Account

1. Open up Users & Groups from System Preferences. Here, click on the lock icon to authenticate, and then select your account from the left-hand pane.


3. Now, click on the Set box next to the Apple ID field, as shown in the screenshot below:


4. Enter your Apple ID here, or create a new one by clicking on Create Apple ID.


Note: You can associate more than one Apple ID with your account by using the “Plus” icon.

5. Once you’ve entered and set up your Apple ID, check the box for the option to Allow user to reset password using Apple ID

Reset-Password-OSX-Allow-User-To-ResetYou should also make sure you keep your Apple ID secure, as it can be very useful in the case that you lose your iOS/Mac device, or you need to recover an account password. For this, I’ll recommend you take a look at Tim Brookes’ article about setting up and using two-step verification for your Apple ID Lock Down These Services Now With Two-Factor Authentication Two-factor authentication is the smart way to protect your online accounts. Let's take a look at few of the services you can lock-down with better security. Read More .

Reset Your OS X Account Password Using Your Apple ID

Now that you’ve associated an Apple ID with your account, you can use it to reset your account at the login window. Enter the wrong password several times, and the system will issue a message, stating that if you’ve forgot your password, you can use an Apple ID to reset it.


The message will have a small arrow next to it, which when clicked will initiate the password reset process. Follow the on-screen instructions, and your password will be reset.

Use Terminal To Reset Your OS X Password

Your final option is to use Terminal to reset your password. This method will trick your system into believing that it has never been set up before. You’ll create a new admin account using this method, and then use it to reset the password of your account. All your system files, app, personal data etc. will remain untouched, but you should always have a backup anyway.

Disclaimer: We can’t take any responsibility for any damage done using this procedure. While it is 100% tried and tested, if you enter a wrong command into Terminal instead of the ones we’ve provided and do damage, we are not responsible.

Messing with Terminal in single-user mode is a risky thing, and we’ll only recommend using this method if any other of the above methods is not working for you, and you’re still locked out of your computer.

1. Shut down your Mac if it is on.

2. Press the power button to start the computer.

3. Immediately press and hold the “Command key+S“.


This will open up Terminal in ‘single-user’ mode. You’ll know that you have successfully entered single-user mode when you see white text appear on the screen.


4. Enter the following commands into Terminal, one by one. Remember to press Return/Enter after each command.

mount -uw /

rm /var/db/.AppleSetupDone

shutdown -h

5. Your Mac will now shutdown. Boot it up using the power button, and you’ll be presented with the Mac Startup screen.


6. Follow the steps narrated on your screen to create a new admin account.

7. Once you’re logged in, open up Users & Groups from System Preferences. Click on the lock icon to authenticate. Here, enter the admin user and password you just created.

8. Select the account whose password you want to reset, and click on Reset Password.


9. Once you’ve reset your password, log out, and log back into your original account.


The take home nessage is that you should note down your passwords somewhere safe, and probably link your Apple ID to your users account before something goes wrong. In the unlikely event that you cannot log into your Mac account, you have a means to access it.  Don’t forget to check out our guide for everything password-related Everything You Need To Know About Passwords Passwords are important and most people don't know enough about them. How do you choose a strong password, use a unique password everywhere, and remember them all? How do you secure your accounts? How do... Read More .

Have you ever been locked out of your Mac? How did you regain access?

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. King
    February 17, 2018 at 3:08 pm

    Imac so bad maybe I going to window better.... passwords and account is right but can’t login what is that mean.... when I’m up high Sierra everything is bad and bad

  2. Neil Gass
    April 8, 2017 at 4:03 pm

    On my iMac 2013 running Sierra, I had to use a different version of the "shutdown" terminal command in order to be able to exit the terminal & shut down the computer. I used "sudo shutdown -h now" and it worked. This was the only way to be able to continue with the process as the terminal would not accept "shutdown -h" as a command.

  3. indio
    December 30, 2016 at 8:11 am


  4. Ebenezer O Olarewaju
    November 14, 2016 at 12:48 am

    I'm trying to reset using terminal. I entered the codes but the system is not shutting i have to manually shut it down

  5. Anonymous
    April 6, 2016 at 1:09 am

    For the mac I used, I typed in the command and it still didn't work, I have The solution.

    When you start it up, hold done command + s (Windows keyboard: Windows logo + s) and then when it it comes up with :/ root# type in exit and it will reset the whole iMac so it is like a new iMac.

    I'm not saying that I am better than you at technology but I just had to type in exit instead of

    mount -uw /

    rm /var/db/.AppleSetupDone

    shutdown -h

    That should work if that command doesn't work.

    Do not feel offended please. I just worked 1 hour to reset my IMac. By typing exit

  6. Bernie
    February 1, 2016 at 11:21 pm

    Thank you so much. I was losing my mind as I had created a new password but when I restarted the computer it didn't work nor did the old one.
    I tried other tutorials and yours was the only one that explained it well enough for me to follow.
    Thank you again????

    • Mike
      July 4, 2016 at 5:02 pm

      This didn't work for me it just opend it up as usual

  7. Zeb
    November 20, 2015 at 2:03 pm

    Shujaa Imran, you are a life saver. I honestly can't thank you enough.

    I really hope you get to read this an know that you really really helped a man out at the end of his wits.

    ??????+?? Bro.

  8. Troy
    November 16, 2015 at 5:12 pm

    Anyone else notice that this Mac only has admin accounts and no standard user accounts. That is not a good security practice.

  9. Mac user
    May 1, 2015 at 2:03 pm

    The keychain is encrypted so even if a thief got your Mac they would have to go to some effort to get your email password.

  10. Brian
    May 30, 2014 at 5:03 pm

    Another great article for the newbie. I am the only user on the machine but if something happened that I was unable to use it, my spouse can now access it. Thanks

    • Shujaa Imran
      May 31, 2014 at 7:00 pm

      Glad this helped you :)

  11. dee7kay
    May 30, 2014 at 3:37 pm

    This article is like a manual for thieves with stolen Macs! What if someone stole my Mac? Can they use the same methods (Password Recovery Utility and Terminal in ‘single-user’ mode) to gain access to my account with all my passwords for e-mail etc? Is there a way to prevent this?

    • Anonymous
      May 31, 2014 at 2:02 pm

      And the answer is.........YES!

      Encrypt your disk.......

    • Shujaa Imran
      May 31, 2014 at 7:00 pm

      I'd recommend you use FileVault to encrypt your disk, which will make most of the methods listed above unworkable. However, in the case that you forget your password, there's a really less chance you'll be able to regain access.

    • kOoLiNuS
      June 1, 2014 at 8:59 am

      Once a thief has physical access to your machine, he has many other ways to 'penetrate' it… security is a short blanket, any behavior or strategy has it's own downsides :-(