How to set a password for the root user of macOS

MacOS has, by default, an account called 'root' which, although hidden, when used allows access to and edit files of other users and the system. It is useful for administrators who need to change protected files but, in the wrong hands, can cause problems. However, it is easy to protect yourself.

MacOS keeps track of your location; know disable and delete

See, in the following tutorial, how to disable or set a password for the macOS root user account. The tip is also useful to protect yourself from the security flaw that affected users of the latest version of the Apple system.

Learn how to set up a password or disable the macOS root user

Step 1. Access the macOS settings. To do this, open the apple menu and click on "System Preferences ...";

Open System Settings

Step 2. In the macOS settings window, click on "Users and Groups";

Access user settings

Step 3. Click on the lock icon in the lower left corner of the window and enter your password to unlock access to the advanced settings;

Unlock access to protected resources

Step 4. Under "Start Options, " click "Connect ..." and, in the screen that appears, click "Open Directory Utility";

Open the Directory utility

Step 5. Click on the lock icon in the lower left corner and re-enter your password;

Unlock access to protected resources

Step 6. Now open the "Edit" menu and click "Change Root Password ...". If you want to deactivate the account, just click on the item below;

Disabling or changing root password

Step 7. Finally, enter the password you want to use and click "OK". Remember to use a strong password, with uppercase and lowercase letters, numbers, and special characters.

Enter and verify the root user's new password

Ready! Take advantage of the tips to protect your computer from unauthorized access by others through the root user account.