How to Reset a Mac's Administrator Account Password

Don't be locked out because you forgot your Mac administrator username

What to Know

  • Log into a different administrator account and reset the primary account's password in Preferences.
  • Use the Reset it using your Apple ID option after trying to log into your computer three times.
  • Use the resetpassword Terminal command after logging into the Recovery HD partition.

This article discusses how to reset the password of an administrator account on a Mac.

Mac login password hint


Use an Existing Administrator Account to Reset Another Administrator Account

Resetting an administrator account isn't difficult, as long as you have a second administrator account to use. It's a good idea to have a second administrator account set up for troubleshooting various issues, including forgetting a password.

Of course, that only works if you haven't also forgotten the password for the other administrator account. If you don't remember that password either, try one of the other methods outlined below.

  1. Log in to a second administrator account.

  2. Launch System Preferences, and select the Users & Groups preference pane.

  3. Click the lock icon in the bottom left corner of the preference pane and enter your administrator password.

  4. In the left-hand pane, select the administrator account whose password needs to be reset.

  5. Click the Reset Password button in the right pane.

  6. In the screen that drops down, enter a new password for the account, verify it, and provide an optional password hint, if desired.

  7. Click Change Password .

Resetting the password this way creates a new keychain file for the user account. If you want to use the old keychain file, see the instructions below.

Using Your Apple ID to Reset an Administrator Account

One of the features introduced with OS X Lion is the ability to use your Apple ID to reset your administrator account on your Mac. You can use this feature to reset the password for any user account type, including a standard account, managed account, or sharing account.

To use your Apple ID to reset an account's password, the Apple ID must be associated with that account. You would have associated your Apple ID with your user account either when you initially set up your Mac or when you added user accounts.

The Allow user to reset password using Apple ID must be checked in System Preferences > Users & Groups for this method to work.

System Preferences Users & Groups screen
  1. Enter your password incorrectly three times at the login screen. You'll see a message that displays your password hint if you set one up, and the option to reset your password using your Apple ID. Click the small right-facing button next to the …reset it using your Apple ID text.

  2. Enter your Apple ID and password and then click the Reset Password button.

  3. A warning message will display, telling you that resetting the password will cause a new keychain file to be created. Your keychain holds frequently used passwords, so creating a new keychain usually means you'll have to resupply passwords for some services you use, including email accounts and some websites you've set up for automatic login. Click the OK button to reset the password.

  4. Enter the new password along with a password hint and click Reset Password.

You'll be asked to restart when you are done.

Reset Your Administrator Password Using the Recovery HD Partition

Apple includes a Recovery HD partition on newer Macs. It contains a Reset Password option.

  1. Restart the Mac while holding down the Command+R keyboard combination to enter the macOS Recovery partition. Release the keys when you see the Apple logo on the screen.

  2. Select Utilities > Terminal to open a Terminal window.

  3. Type resetpassword and press Return to open the Reset Password screen.

  4. Select I forgot my password from the available options.

  5. Enter the password for the account's Apple ID.

  6. Apple sends an authentication code to another Apple device registered to the same Apple ID. If you don't own another Apple device, you can opt to receive the code by phone or SMS text. Enter the code in the field provided.

  7. Enter the new password and, optionally, a password hint. 

  8. Restart the Mac.

Your administrator password has been reset.

First Login With New Password

When you first log in after changing your administrator password, you are greeted with a dialog box telling you that the system wasn't able to unlock your login keychain.

  • There are three ways to continue. If you happen to remember the old login password, you can click the Update Keychain Password button. It's unlikely that you'll suddenly remember the password, so you probably need to use one of the other two options.
  • The second option is to create a new keychain that uses your new password. This option creates a nearly empty keychain file that is accessed using your new password. This option resets your keychain, so you'll need to supply passwords for various services, such as Mail and websites that require usernames and passwords. Click the Create New Keychain button.
  • The last option is not to do anything with the keychain system. You can finish the login process by clicking the Continue Log In button, which takes you to the Desktop. This is a temporary solution; the next time you log in, you'll be presented with the same keychain dialog box.

It may seem like a huge problem that your original login keychain is locked to the original password, and you find yourself forced to not only create a new keychain but also to resupply all those account IDs and passwords that you've built up over time with your Mac.

Having the login keychain locked from access is a good security measure. You wouldn’t want someone to sit down at your Mac and use one of the methods outlined here to reset your administrator account. If resetting the administrator account also reset the keychain files, then anyone could gain access to the login information you use with many services, including banking, credit cards, investments, and all the other websites on which you have accounts. They could also start sending and receive messages using your email account or use Messages to impersonate you.

It may seem like a major hassle to have to recreate all of your old login information, but it sure beats the alternative.

Avoiding the Keychain Login Issue

One thing you can do is use a secure third-party password service as a place to store your login information for various services. This isn't a replacement for Mac’s keychain but a secure storehouse for you to keep the information safe, one which you can access using a different, and hopefully not forgotten, password.

1Password is good, but there are many others to choose from, including LastPass, Dashlane, and mSecure. If you want to find more password management options, open the Mac App Store and search for the word password. If any of the apps look interesting, check the manufacturer's website. Many times they include demos that aren't available from inside the Mac App Store.

Make sure the Caps Lock key isn't active when you type in your password. That or any change in capitalization renders your case-sensitive password unacceptable.

FAQ
  • How do I change my admin name on my Mac?

    In the upper-left corner of the screen, select the Apple icon > System Preferences > Users & Groups. Next, select the lock icon and enter your admin password. Press and hold the Control key > choose the account you want to rename > Advanced Options. Set your new account name, select OK, then restart your Mac.

  • How do I delete an admin account on my Mac?

    First, log in as an admin, then select the Apple icon > System Settings > Users & Groups. Next, select the i icon next to the account you want to delete > Delete Account. Choose a Home folder option (save, don't change, delete), then select Delete Account.

Was this page helpful?