How to enable the root user
Mac OS X v10.6 and later
1. From the Apple menu choose System Preferences....
2. From the View menu choose Accounts.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right.
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Enable Root User from the Edit menu.
10. Enter the root password you wish to use in both the Password and Verify fields, then click OK.
How to disable the root user
Mac OS X v10.6 and later
1. From the Apple menu choose System Preferences....
2. From the View menu choose Accounts.
3. Click on the lock and authenticate with an administrator account.
4. Click Login Options....
5. Click the "Edit..." or "Join..." button at the bottom right
6. Click the "Open Directory Utility..." button.
7. Click the lock in the Directory Utility window.
8. Enter an administrator account name and password, then click OK.
9. Choose Disable Root User from the Edit menu.