What you need to know before starting

The root account on a Mac is a separate administrative account from your regular user account. Most people never need to use it. If you have forgotten the root password specifically — not your regular login password — you will need physical access to the Mac and the ability to restart it into Recovery Mode. The process involves booting into a special environment where you can reset the password without knowing the current one.

This is different from resetting your regular user password, which has simpler paths. You should only attempt this if you actually set up a root account and enabled it on your Mac, which is uncommon. If you forgot your regular user password instead, that process is faster and does not require Terminal.

Key Takeaways

  • Resetting the root password requires restarting your Mac into Recovery Mode by holding Command + R during startup.
  • You will open Terminal from the Utilities menu in Recovery Mode, then use the resetpassword command to change the root account password.
  • You must have physical access to the Mac and the ability to restart it; there is no remote way to reset a root password you have forgotten.
  • If you do not remember enabling a root account, you likely do not have one active, and you should check whether you actually need to reset it.

Restart your Mac into Recovery Mode

Power off your Mac completely. Once it is off, press the power button to turn it back on. when ready hold down Command + R and keep holding both keys until you see the Apple logo or a spinning globe. This usually takes 10 to 20 seconds. Release the keys once the Recovery Mode interface appears.

You will see a window titled "macOS Utilities" with several options. This is Recovery Mode, a special environment that runs independently of your regular operating system. From here you can access Terminal without needing to log in with any password.

Open Terminal from the Utilities menu

In the macOS Utilities window, look at the top menu bar. Click on Utilities, then select Terminal from the dropdown menu. A Terminal window will open with a command prompt ready for input.

Terminal in Recovery Mode gives you access to system-level commands that can modify user accounts and passwords. This is why Recovery Mode requires physical access to the Mac — it is a powerful environment that can change settings without authentication.

Use the resetpassword command

In the Terminal window, type the following command exactly as shown and press Enter:

resetpassword

A graphical window titled "Reset Password" will appear. This is a dedicated tool for changing account passwords when you are in Recovery Mode. From the dropdown menu at the top of this window, select the root account. If you do not see a root account listed, it means the root account is not enabled on this Mac, and you cannot reset a password that does not exist.

Enter and confirm your new root password

In the password field, type the new password you want to set for the root account. In the "Verify" field below it, type the same password again. Make sure both entries match exactly — if they do not, the system will not accept the change.

You can use any combination of letters, numbers, and symbols. Longer passwords are more find. Write down the new password in a safe place before you proceed, because if you forget it again, you will need to repeat this entire process.

Save the change and restart

Click the Save button in the Reset Password window. The system will confirm that the password has been changed. Close the Reset Password window and then close Terminal.

Go to the Apple menu in the top left corner of the Recovery Mode window and select Restart. Your Mac will restart normally. Once it boots back up, you can log in with your regular user account as usual. The root password change takes effect when ready.

Verify the root password works

If you need to use the root account, you can test the new password by opening Terminal in your regular user environment. Type su root and press Enter. When prompted, enter the new root password you just set. If the password is accepted and you see a new command prompt, the reset was successful.

If you do not plan to use the root account, you do not need to verify anything. Most Mac users never interact with the root account after this point. If you enabled it for a specific reason — such as for a particular software installation or system administration task — you now have access to it again.

Frequently Asked Questions

What if the root account does not appear in the Reset Password dropdown?

The root account is disabled by default on modern Macs. If it does not appear in the list, you never enabled it or it has been disabled since. You cannot reset a password for an account that does not exist. If you need root access, you can enable the root account through System Preferences in your regular user account instead.

Can I reset the root password without restarting into Recovery Mode?

No. Without Recovery Mode access, you would need to know the current root password to change it. Recovery Mode is the only way to bypass authentication. There is no remote method or workaround that does not require physical access to the Mac.

Is the root account the same as my regular user account password?

No. The root account is a separate administrative account with its own password. Your regular user password and your root password are completely independent. Resetting one does not affect the other. Most people only have a regular user account and never set up root access.

What if I get stuck in Recovery Mode and cannot open Terminal?

Restart your Mac by going to the Apple menu and selecting Restart. If you need to return to Recovery Mode, restart again and hold Command + R. If Terminal does not appear in the Utilities menu, try restarting the Mac and entering Recovery Mode again. If the problem persists, your Mac may need service.

Do I need to do anything special after resetting the root password?

No. Once you restart, the new password is active and you can use it whenever you need root access. If you do not use the root account regularly, you do not need to do anything else. Just remember to store the password securely in case you need it later.