Enable or Disable the Root User on macOS¶
Mac administrators can use the root user account to perform tasks that require access to more areas of the system.
The user account named ”root” is a superuser with read and write privileges to more areas of the system, including files in other macOS user accounts. The root user is disabled by default. If you can log in to your Mac with an administrator account, you can enable the root user, then log in as the root user to complete your task.
How to Enable the Root User¶
System Preferences >
Users & Groups Click
lock icon, enter an administrator name and password. Click
Login Options. Click
Newotk Account Server.
Open Directory Utility.
Click lock icon in the Directory Utility window, then enter an administrator name and password.
From the menu bar in Directory Utility: Choose Edit > Enable Root User, then enter the password that you want to use for the root user. Or choose Edit > Disable Root User.
How to Disable the Root User¶
To Disable the Root User repeat the steps above, but change the last step to Disable Root User.
Login as The Root User¶
When the root user is enabled, you have the privileges of the root user only while logged in as the root user.
Logout of your current account, then log in as the root user. user name ”root” and the password you created for the root user.