Enabling the Root User Account
Ready to turn on your Mac's superuser account? Here’s how to enable the root user account in Mac OS X and set the password:- From the Apple menu, select System Preferences.
- Select Users & Groups.
- Click the lock and authenticate with an administrator account.
- Select Login Options.
- Click Join, as shown in the figure below.
- Click Open Directory Utility. The Directory Utility window appears.
- Click the lock and authenticate with an administrator account.
- From the Edit menu, select Enable Root User.
- Enter the password for the root user in the Password and Verify fields.
- Click OK to enable the root user and save the password.
Logging in as Root
Now you can log in as the root user at the Mac OS X login screen. When the list of users appears, click Other, typeroot
in the Name field, and enter your root password in the password field.
You'll be logged in as root until you log out, restart, or shut down
your computer.Note: To log in as root from the OS X login screen, you must have automatic login and FileVault disabled.