The need to reset or recover your admin password for your account can happen for a variety of reasons - we were recently in this position when we messed around with settings on our Mac and then forgot the admin log in details, it happens...

Whatever your reasons for changing the admin password on your Mac, this article has you covered with 4 reset or recovery methods. The following uses OS X version 10.9 (Mavericks) as the recovery methods can be different for earlier versions of OS X.

Method 1. Reset password from Users & Groups

The easiest approach is to try to reset your password from within OS X System Preferences.

1. Open System Preferences and navigate to the Users & Groups tab.

2. Select your admin account, then choose “Change Password…” and enter your new and old password.

Note: If you have lost your old password, you can also recover it via your Apple ID. After 3 incorrect login attempts, you will get a popup message you will be presented with the option to reset via Apple ID should you have the option enabled.

Method 2: Recover your password from FileVault

This method requires you to have FileVault enabled. If you don’t have it on, then skip this method. FileVault is not on by default and must be manually enabled.

1. Retrieve the recovery key you copied down when you turned on FileVault disk encryption. If you cannot find your recovery key but stored it with Apple, contact Apple Support.

2. Restart your Mac.

3. On the login screen click on the account to unlock and reset the login password.

4. In the password field, click the Help button (?). Then click the bottom line “reset it using your Recovery Key,” then enter your recovery key.

Method 3: Boot into Recovery Partition

If the above methods don’t work for you, then try resetting your admin password via the recovery partition.

1. Boot to the recovery partition on your original drive by holding down Command-R during the startup process. When you see the start up screen, you can let go of the keys.

(Note: If you see a login window or your own desktop and icons, it's possible that you didn't hold Command-R early enough. Restart and try again.)

2. When the machine boots, you will the OS X Utilities screen. Click on Utilities in the Apple menu and select Terminal.

3. At the Terminal prompt, type ‘resetpassword’ (no quotes) then hit enter.

4. This will launch the reset utility, which allows you to select a drive, a user, then a new password and password hint for your admin user.

5. After saving, go to the Apple Menu and click Restart.

Read:

Method 4: Reset using Single-user mode.

All else failing, you can boot your computer into single-user mode to reset your admin password. Keep in mind this requires some command-line trickery and will probably require you to write down or take a picture of the following. Note: Enter the commands exactly as shown, the commands are case & space sensitive.

1. Shutdown, then start up your Mac and hold down Command-S at boot to enter single-user mode.

2. Type ‘mount -uw /’ (no quotes) and press Enter.

3. Type ‘launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist’ (no quotes) and hit Enter.

4. Type ‘passwd username’ (no quotes) replacing ‘username’ with the name of your admin account.

5. Enter your new password, then hit enter. At the next prompt, enter your password again to confirm and hit enter.

6. Type ‘reboot’ (no quotes) then hit Enter to restart your Mac.

Read: