- However you can enable the root account and set a password for it. To do so use: sudo passwd root Firstly you will be asked for your current user password and after this you will be asked for the new password twice (new and retype password) as your new root password. For more information see RootSudo - Community Ubuntu Documentation.
- No need to use Mac installer disc or third-party software. Method 1: Reset Forgotten MacOS Mojave Password in Single-User Mode. Single-user mode under Mac OS X gives you all root privileges without root password. This allows forgetful users to create a new admin account when they're locked out of Mac due to forgetting password.
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.
In light of the recent security concerns with macOS that allows anyone to easily gain root access (https://9to5mac.com/2017/11/28/how-to-set-root-password/).
See also: How to Enable/Disable Root User on Mac
Change the root password
Root password can be changed from Directory Utilities.
Password For Root Mac Os High Sierra
- Click the Apple menu (), select System Preferences, and then click Users & Groups (or Accounts) according to your Mac OS version.
- Now, click the Lock icon to make changes, and you have to enter administrator name and password.
- Click Login Options and then Click Join (or Edit) depends on Mac OS version.
- Select Open Directory Utility, and here again click the Lock, and then enter the admin username and password.
- Once you are on the Directory Utility window, on the top click the menu Edit > Change Root Password.
- Type and change the root password.
Set root password using Terminal
Enable Root User Mac 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
Reset Password Root Mac Os X
Use installation DVD of Mac OS X to boot your Mac and through Reset Password option set a new password for Root.