Your Mac’s login password is the key that unlocks much of what you do on your Mac. You need it to log in in the first place, of course. But you also need your password to authorize updates, access iCloud Keychain, autofill card details in Safari, and change privacy settings for apps in System Settings. So, if you forget your password, you won’t be able to access your Mac. Fortunately, there are several ways to reset your password if you’ve forgotten it. The easiest one relies on you having linked your Apple ID to your Mac. But what if you haven’t? How do you unlock your MacBook Pro without a password or Apple ID? We’ll show you exactly how to do that.

Use another admin account on your Mac

Do other people use your Mac as well as you? Perhaps you have family members who also have accounts on the Mac? If so, and one of them is an admin account, you’re in luck. Read on to find out how to use their account to access yours.

  1. Log in to your Mac using the other admin account.
  2. Click the Apple menu and choose System Settings.
  3. Select Users & Groups in the sidebar.
  4. Click the ‘i’ next to your username and then click Change Password.
  5. Type the new password and then type it again in the Verify box.
  6. Click Change Password.
  7. Go to the Apple menu and choose Log Out.
  8. Log back in with your own username and the new password.
Tip

How to improve your privacy on your Mac

Your login password is only one tool for helping you maintain your privacy when you use your Mac. There are lots of other ways you can prevent others from accessing your private data. One thing you should do is review the permissions you’ve granted apps to access features like your Mac’s camera and microphone, screen recording, and your Desktop and Documents folders. You should also clear out your Recent Items list if, say, you’ve been working on a commercially sensitive project. Your web browser history, downloads, and search history are also potentially weak spots for accessing private data, as are the cookie and cache files browsers save on your Mac. Managing all that data manually would be time-consuming and very dull. Thankfully, you don’t have to — CleanMyMac X’s Privacy module can scan your Mac, look for all that data, and allow you to review and manage it with a few clicks. Best of all, it’s free to download here, so you can try it out for yourself.

CleanMyMac - Application permissions


Use FileVault Recovery Key

If there is no other admin user account on your Mac, but you use FileVault, you can reset your password using the FileVault Recovery Key. The FileVault Recovery Key is the series of letters and digits that you will have received when you turned on FileVault if you chose a recovery key instead of using your Apple ID to unlock your account.

  1. Try and log in to your Mac with a password.
  2. When that fails, try two more times.
  3. After the third attempt, you will see a message that says ‘Restart and show password reset options.’ Click it.
  4. Wait for your Mac to restart.
  5. If you’re given the option of using your Apple ID or FileVault Recovery Key, choose FileVault Recovery Key.
  6. Type in the recovery key when you’re asked.
  7. Select the username you want to change the password for if there’s more than one user account on your Mac.
  8. Type in the new password and click.
  9. Follow the instructions on the screen to complete the change of password.
  10. When it’s finished, click Restart.

Use the Password Reset Assistant

If you don’t have a FileVault Recovery Key or weren’t able to use it to reset your password, you’ll need to use the Password Reset Assistant. To do that, you will need to boot your Mac in recovery mode and use Terminal. Note that at step 5, you may be asked for your Apple ID and password. If you don’t know those, you will have to exit Password Reset Assistant, rebooting again in recovery mode if necessary. The process for rebooting your Mac in Recovery Mode is different depending on the Mac you have.

To reboot in Recovery mode on a Mac with Apple silicon, shut down your Mac and then hold down the power button until you see startup options. Click Options.

On an Intel-based Mac, shut down your Mac, then press the power button and hold down Command-R until you see macOS Utilities.

Once you’ve booted your Mac in recovery mode, follow these steps.

  1. Click the Utilities menu and choose Terminal.
  2. In the Terminal window, type: resetpassword
  3. Press Return.
  4. If you’re asked for the password for an admin account, click ‘Forgotten all passwords?’
  5. When the Reset Passwords window appears, click Deactivate Mac, then Deactivate Mac again to confirm.
  6. Type in your new password and click Next. If there is more than one user account displayed, click Set Password next to each one and type in the new password information for that account.
  7. When you’re done, click Exit.
  8. Restart your Mac from the Apple menu and log in with the new password.

Erase your Mac

This is the last resort. Erasing your Mac wipes all the data and settings on it. If you have a recent backup, particularly if it’s a Time Machine backup, then you will be able to recover your data and settings quickly. If not, you should. Think very carefully about using this option.

  1. Shut down your Mac and then boot it in recovery mode.
  2. Click the Recovery Assistant menu in the menu bar and choose Erase this Mac.
  3. In the Erase Mac window, choose Erase Mac and then click Erase Mac again to confirm.
  4. If your Mac restarts and you see a flashing question mark, press and hold the power button to shut it down.
  5. Boot into recovery mode again and choose Reinstall macOS from the macOS Utilities menu.

When you erase your Mac and reinstall macOS, it will boot as it did when it was new. You will have to go through the process of setting it up, including creating a new user account and password. If you have a Time Machine backup, you can use Migration Assistant when it opens during setup to migrate accounts, settings, and data from the backup to your Mac. If you have a backup from another backup tool, you will have to set up user accounts manually and then restore from the backup using the application for that backup tool.

If you can’t remember your Mac’s password and it isn’t linked to an Apple ID, accessing it can be very difficult, but not impossible. If you use FileVault, there are only a few more steps needed. If you don’t, it’s more complicated but still possible. Follow the steps above to unlock your MacBook Pro without your password or Apple ID. And, of course, it works with any other Mac, too.