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. 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. 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. 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.