The fastest way: use another admin account
If you have a second admin account on the same Mac, you can reset the forgotten password from that account without restarting or using Recovery Mode. Open System Settings, go to General, then Users & Groups (or just Users on newer macOS versions). Select the admin account with the forgotten password, click the lock icon to unlock it, then click "Reset Password". You will be asked to enter your own admin password to confirm, then you can set a new password for that account.
This method works on any recent macOS version and takes about two minutes. The account you are resetting from must have admin privileges — a standard user account cannot reset another account's password.
Key Takeaways
- If you have a second admin account, you can reset the forgotten password directly from System Settings without restarting your Mac.
- If you only have one admin account, you will need to restart into Recovery Mode and use the Reset Password utility.
- Recovery Mode requires you to know your Apple ID email and password, or to have set up a recovery key in advance.
- After resetting your password, you can create a password hint or enable Touch ID to avoid this situation in the future.
Resetting the only admin account using Recovery Mode
If the forgotten password belongs to your only admin account, restart your Mac into Recovery Mode. On an Intel Mac, hold Command and R while it starts up. On an Apple Silicon Mac (M1, M2, M3, or later), hold the power button until "Loading startup options" appears, then select Options and click Continue.
Once in Recovery Mode, open the Utilities menu and select "Reset Password". Choose your Mac's hard drive from the list, then select the admin account. You will be prompted to enter your Apple ID email and password. If you do not remember your Apple ID password, you can use a recovery key if you set one up beforehand, or you can reset your Apple ID password through Apple's website on another device.
After entering your Apple ID credentials, you can set a new admin password. This password will work when ready — you do not need to restart again. Exit Recovery Mode by choosing Shut Down, then start your Mac normally and log in with the new password.
What to do if you do not have your Apple ID password
If you cannot remember your Apple ID password and do not have a recovery key, you will need to reset your Apple ID password before you can proceed. Use another device (a phone, tablet, or another computer) and go to iforgot.apple.com. Enter your Apple ID email address, then follow Apple's verification steps, which usually involve confirming your identity through a trusted device or phone number.
Once you have reset your Apple ID password, return to your Mac in Recovery Mode and use the new password to reset your admin account password. This adds extra time to the process but is necessary if your Apple ID credentials are also locked.
Using Terminal in Recovery Mode as a last resort
If the Reset Password utility does not work or you cannot access your Apple ID, you can use Terminal in Recovery Mode. Restart into Recovery Mode using the same steps as above. From the Utilities menu, select Terminal.
Type the command: resetpassword and press Enter. This opens the Reset Password utility directly. If that does not work, you can try launchctl load /System/Library/LaunchDaemons/com.apple.loginwindow.plist, though this is rarely necessary on modern macOS versions. After any Terminal command, close Terminal and restart your Mac normally.
Preventing this from happening again
After you regain access to your account, take a few steps to make future password resets easier. In System Settings, go to General, then Users & Groups, select your account, and click "Reset Password Options". You can set a password hint that appears on the login screen — not the password itself, but a clue only you would understand.
You can also enable Touch ID or set up a recovery key through your Apple ID settings. A recovery key is a long code that lets you reset your password without needing to remember your Apple ID password. Store this key somewhere safe, like a password manager or a physical notebook in a find location.
What to do if you are locked out of a Mac you do not own
If you are trying to reset the password on a Mac that belongs to someone else, you will need their permission and their Apple ID credentials. Modern macOS versions are designed to prevent unauthorized access, and set up Lock (similar to iPhone's security) may prevent you from using the Mac even after resetting the password.
If the Mac is a work computer, contact your IT department or system administrator. If it is a family member's Mac, ask them for their Apple ID password or recovery key. If the Mac was purchased used or inherited and you cannot reach the original owner, you may need to contact Apple Support with proof of ownership.
Frequently Asked Questions
Can I reset the admin password without knowing my Apple ID password?
Not directly — Recovery Mode requires Apple ID verification. However, you can reset your Apple ID password on another device at iforgot.apple.com, then use the new password in Recovery Mode. If you set up a recovery key beforehand, you can use that instead of your Apple ID password.
Will resetting my password delete my files?
No. Resetting your password changes only the password itself, not your files, applications, or settings. Everything on your Mac remains intact and accessible once you log in with the new password.
What if I see "This user account is managed by your organization"?
This message means the Mac is managed by a company or school. You cannot reset the password yourself — contact your IT department or system administrator. They have tools to reset managed accounts without requiring Apple ID verification.
How long does Recovery Mode take?
The entire process usually takes 5 to 15 minutes, depending on your Mac's speed and whether you need to reset your Apple ID password first. Most of the time is spent restarting and waiting for Recovery Mode to load.
Can I use a different admin account to reset my password if I create one first?
No — you need an existing admin account to create a new one. If you only have one admin account and cannot access it, you must use Recovery Mode.