How to enable “root” user in Mac OS X

If you migrate from linux based operating system to Mac OS X (which is also unix based os), you’ll be missed your root account. It is because “root” user is disabled by default because it’s so special. But you can enable your “root” account in Mac OS X.

1. From the Finder’s Go menu, choose Utilities.
2. Open Directory Utility.
3. Click the lock in the Directory Utility window.
4. Enter an administrator account name and password, then click OK.
5. Choose Enable Root User from the Edit menu.
6. Enter the root password you wish to use in both the Password and Verify fields, then click OK.

Via Apple Support

… And you can test it. Open terminal, type “su -“. Then, type the password you defined in the steps above and walla! you’re now “root”, the master of your machine.

Leave a Reply