How to Change Root Password on Mac

Root user in Mac OS is an individual user, different than administrators and has exclusive rights and powers to make any change to the system. If you forgot the password of Mac OS Root user, see how to recover Root password using different methods in Mac OS. In this guide, you will see how to reset or change root user password using the Directory Utilities, from the Terminal app or with the help of a boot DVD.

See also: How to Enable/Disable Root User on Mac

Change the root password

Root password can be changed from Directory Utilities.

Advertisement
  1. Click the Apple menu (), select System Preferences, and then click Users & Groups (or Accounts) according to your Mac OS version.
  2. Now, click the Lock icon to make changes, and you have to enter administrator name and password.
  3. Click Login Options and then Click Join (or Edit) depends on Mac OS version.
  4. Select Open Directory Utility, and here again click the Lock, and then enter the admin username and password.
  5. Once you are on the Directory Utility window, on the top click the menu Edit > Change Root Password.
  6. Type and change the root password.

Set root password using Terminal

  • Click Finder icon on the dock and Navigate to Applications > Utilities and launch Terminal
  • Copy and paste or just type the following command in the Terminal window and hit enter/return
    sudo passwd root

    It asks for your password, so enter the password of your current login and press enter/return.
  • Now it asks to set a New password for Root user, type new password and hit enter/return.
  • Retype Root password and press enter/return.
  • The Root password has been changed.

Reset root user password with installation DVD

Use installation DVD of Mac OS X to boot your Mac and through Reset Password option set a new password for Root.

11 comments… add one
De Pula January 17, 2010, 6:47 pm

very useful mac os x article

Nono April 11, 2010, 2:54 am

thanks for sharing this tip to reset root password on mac

jahanzebmis June 23, 2010, 8:15 pm

Gr8… I search so many times @ different websites but this article actually solved my problem..

Thanks….

joseluis August 12, 2011, 4:33 am

steps very clear explained

thanks

lollipop :P April 4, 2012, 10:52 pm

Nice explained, I’m not the admin of the computer so it said that I’m not the admin and that it will be reported to the admin 🙁

barste10 November 7, 2012, 8:42 pm

I have 5 macs that need to have the root password changed i changed it but then someone went in and changed it back to the defult passwd so i am not sure what happen.

Thanks
Steven Barber
sweetdodgecharger2006@live.com

ovy February 17, 2014, 2:51 am

Thank you! Very helpful!

sunflower September 27, 2015, 9:48 am

forget my password

Leave a Reply

Join Our Subscribers

Receive the latest how-to guides, news, and updates from our team.

You have Successfully Subscribed!