Resetting your Password
Apple includes several options for resetting account passwords in OS X. The approaches outlined below depend on how much access to your Mac you currently have.
Change it from an admin account
To maximise your Mac’s security you should have both an administrator account for administrative tasks and a standard account that you use for your primary identity (you can still perform administrative tasks from within your main account by authenticating with the administrator credentials). If you configure your Mac this way you can then log into the admin account and use the Users & Groups system preferences to change your main account’s password.
To do this, click the lock icon in the Users & Groups system preferences to authenticate, and then click the account you can’t log into. In the account’s settings, click the Reset Password button to change the account’s password.
Use Single-User mode
Every Mac has a main user account called “root,” which is the system account that’s used to launch the essential background services required for your Mac to operate. While this account is generally hidden and inaccessible, you can quickly get to it for its administrative capabilities by booting your Mac into single-user mode.
To proceed you’ll need to know the short name of the account for which you would like to reset the password, and then perform the following steps:
- Restart your Mac and hold down Command-S at the boot chimes.
- When you see the command prompt, enter the following command to put the boot drive into read and write mode:
mount -uw /
- Now run the following command to load Open Directory (Apple’s account directory service in OS X):
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
- Reset the password for your user account by entering the following command (replace “username” with the short name of the desired account)
passwd username
Use an Apple ID
In OS X you can bind your user account to your Apple ID and then use it to reset your OS X password if you’ve lost it. This feature first requires that you’ve associated your Apple ID, which can be done by going to the Users & Groups system preferences, and then clicking the Set button next to the words Apple ID and then supplying your Apple ID and password. You can then enable the option to allow resetting your password using an Apple ID. (If you instead see a Change button next to the Apple ID entry, your ID is already associated.)
With this set up, you can reset your password by entering the incorrect password three times on the login screen, which will invoke a panel that prompts you to reset the account’s password using your Apple ID. Follow the on-screen instructions and you should be able to change your password and then log into your account.
Note that of the options I present here, this one should preserve the link to your keychain, allowing you to continue working seamlessly with your new password, without having to store other passwords in your keychain again.
Use Recovery Mode
A final option for resetting your password is to use Apple’s recovery tools. This will perhaps be the easiest approach in most cases, and can be done with the following procedure:
- Reboot into Recovery mode or Internet Recovery by holding Command-R at startup.
- Choose Terminal in the Utilities menu.
- Enter
resetpassword
(all one word, and lowercase) in the Terminal window and press Return. - Select your boot drive in the utility that appears.
- Choose your user account from the pop-up menu.
- Click the button to reset the account’s password and supply a new one when prompted.
Comments
1 comment
Hi I can’t log into my iPad did all what it said to but still can’t log in. It says to contact IT
Please sign in to leave a comment.