Have you ever forgotten your Mac's administrator account password? That's the account you first set up on your Mac. The Apple setup utility ran you through the process of creating the account, and then sent you off to use your Mac.
If you can't remember your administrator password, you may have difficulty logging in to your account or performing various tasks that require an administrator password. Luckily, you can reset a user account password, including any administrator account, using one of the following methods.
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. In fact, here at About: Macs we highly recommend that you have a second administrator account set up for troubleshooting various issues, including forgetting a password.
Of course, this assumes that you haven't also forgotten the password for the other administrator account. If you don't remember that password, either, you can try one of the other two methods outlined below.
- If you do know the password for the second administrator account, log in to that account.
- Launch System Preferences, and select the User and Groups preference pane.
- Click the lock icon in the bottom left corner of the preference pane, and then supply your administrator password.
- In the left-hand pane, select the administrator account whose password needs to be reset.
- Click the Reset Password button in the right-hand pane.
- In the sheet that drops down, enter a new password for the account.
- Click the Reset Password button on the drop-down sheet.
- Resetting the password this way creates a new keychain file for the user account. If you wish 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. Actually, you can use this feature to reset the password for any user account type, including a standard account, managed account, or sharing account.
- In order 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 originally set up your Mac or when you added user accounts.
- After entering your password incorrectly three times at the login screen, a message will display your password hint (if you set one up), as well as 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.
- Enter your Apple ID and password, and then click the Reset Password button.
- 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; creating a new keychain usually means you'll have to resupply passwords for some services you use, including email accounts and some web sites you've set up for automatic log-in. Click the OK button to reset the password.
- Enter the new password, along with a password hint, and then click the Reset Password button.
- You will be logged in and the Desktop will appear.
Reset Your Administrator Password Using an Install DVD or Recovery HD Partition
Apple includes a utility to reset an administrator's password on every install DVD and Recovery HD partition. To use the Reset Password app, you'll need to start your Mac using either the install DVD or the Recovery HD.
- Follow the instructions in the Mac Troubleshooting - Reset User Account Permissions guide to restart your Mac with the appropriate media and launch the Password Reset app. Once you have the app window open, come back here to continue.
- In the Reset Password window, select the drive that contains the user account you wish to reset; this is usually your startup drive.
- Use the Select User Account drop-down menu to choose the account whose password needs to be reset.
- Enter the new password in the password and password confirmation fields.
- Enter a new password hint.
- Click the Save button.
- A warning message will display, telling you that the keychain password wasn't reset, and that you'll need to change the keychain password to match the new password you entered. Click the OK button.
- Quit the Reset Password app.
- Quit Terminal.
- Quit OS X Utilities
- In the dialog box that opens asking if you really want to quit OS X Utilities, click the Restart button.
Your administrator password has been reset.
First Login With New Password
When you first log in after changing your administrator password, you'll be 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. Of course, it's unlikely that you'll suddenly remember the password, so you'll need to use one of the other two options.
- The second option is to create a new keychain that will use 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 web sites 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 will take 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.