Most people using an Apple macOS have administrator rights. Depending on what you do on your Mac or the applications you’re running, you might still need to learn how to enable the root access on macOS with root user on Mac.
Because macOS systems use a UNIX kernel very close to traditional Linux, besides the regular users you find in System Preferences, there is also root user which gives root access. If you are an administrator, you can install any program on your computer, create users, or delete existing ones.
Why is gaining root access on macOS important?
However, only the root user on Mac can access the files of other users on the computer, modify system files, and modify some of the computer’s operating parameters in the Terminal.
Another reason why you should have the root user on the system with an associated password is related to data security.
Fortunately, Apple has been very efficient in covering security flaws but it is still very important to gain root access on your Mac and to secure it with a strong password that only you know.
How to enable root access on macOS?
- Go to the Users & Groups section of System Preferences;
- Log in with your administrator password;
- Click Login Options in the bottom left and from the Network Account Server button, click Join.
- Access the Open Directory Utility and log in again;
- From the Edit menu at the top left, you must opt for Enable Root User. Type a password for the Root user and confirm it;
- If you want to login with the new root user, click the Apple sign on the top left and click on Log out. Next, in the new login window, click on Other, type in the root username and the password you set earlier and tap Enter to confirm;
That’s it! Now you have root access on macOS via a root user on Mac and you’ll be able to modify system files and modify some of the computer’s operating parameters in the Terminal.