Even admins canβt access every part of the Mac file system!
In particular, admins cannot move files from one user account to another, or edit another userβs files. This restriction can be frustrating if thereβs an account you no longer have access to, such as a user account belonging to an ex-employee who left the company without sharing their login details.
Having access to every single user account can also come in handy if you want to sweep your entire Mac for viruses or malware, or you need to backup everything that exists across your Mac, rather than just the files inside your user account.
You can gain access to every part of your Mac that isnβt protected by System Integrity Protection (SIP), by creating a root account.
Enabling root essentially makes every part of the system accessible, but at this point it becomes much easier to damage your Mac. Thereβs often a reason why macOS prevents you from accessing certain files and folders, so you should only enable root if you have a specific reason for requiring this level of access.
Root can be dangerous, but if you do require root privileges, then in this article Iβll show you exactly how to get them.
Create a root user account
You create a root account, via your Macβs System Preferences:
- Select the βAppleβ logo from your Macβs menu bar, followed by βSystem Preferencesβ¦β
- Choose βUsers & Groups.β
- Click the little padlock icon in the bottom-left, and enter your admin username and password when prompted.
- Select βLogin Options.β
- Click the βJoinβ¦β button.
- In the popup that appears, select βOpen Directory Utilityβ¦β
- Click the padlock, and enter your password again.
- In the βDirectory Utilityβ menu bar, select βEdit > Enable Root User.β
- Enter a strong password that you can definitely remember. To ensure you donβt log into the root account by accident, donβt use the same password as your regular user account. Once youβve entered a long, complex and unique password, click βOK.β Youβve now created your root account!
Alternatively, you can enable root access from the Terminal:
- Open a Finder window.
- Navigate to βApplications > Utilities,β and launch the Terminal application.
- Type the following command:
dsenableroot
- Press the βEnterβ key on your keyboard.
- When prompted, enter your admin password, and then press the βEnterβ key.
- Type the password that you want to use for your root account, and press βEnter.β
- When prompted, enter this password again; press βEnter.β
The Terminal should now display a βSuccessfully enabled root userβ message.
Logging into your root account
You can log into your root account from macOSβ main login screen, just like any other user account:
- Log out of your current user account.
- On macOSβ login screen, select βOtherβ¦β
- Enter root as the username, and the password you just created.
On the surface, this account may look exactly the same as a regular user account, but files that are usually off-limits are perfectly accessible within this account β including important system files!
Since itβs much easier to delete, modify or generally break crucial files, you shouldnβt use the root account for everyday tasks. Even system admins and Mac power users are unlikely to require root access on a day-to-day basis!
You should only log into the root account when you have a task that specifically requires root privileges. As soon as youβve finished this task, you should log out of root and back into your regular user account.
No longer require root?
If someone gained access to your root account, they could cause some serious damage to your Mac. Since root makes your Mac more vulnerable to malicious third parties, if you no longer require root privileges then you should delete this account.
To disable the root user account:
- Navigate to βSystem Preferences > Users & Groups.β
- Click the padlock icon, and enter your admin password.
- Select βLogin Options,β and give the βJoinβ¦β button a click.
- Select βOpen Directory Utilityβ¦β
- Select βEditβ from the toolbar, followed by βDisable Root User.β
Before you go
After spending over 20 years working with Macs, both old and new, theres a tool I think would be useful to every Mac owner who is experiencing performance issues.
CleanMyMac is highest rated all-round cleaning app for the Mac, it can quickly diagnose and solve a whole plethora of common (but sometimes tedious to fix) issues at the click of a button. It also just happens to resolve many of the issues covered in the speed up section of this site, so Download CleanMyMac to get your Mac back up to speed today.

Add Comment