The user named "root" is a special user in UNIX-style operating systems that has read and writes privileges to all areas of the file system. The root user should only be used for specific administration or monitoring tasks. After completing a task as the root user, you should log out of Mac OS X and log back in using a normal or administrator account. You should disable root access if you do not use it often. The root user does not appear in Users or Accounts preferences.
What is the "root directory"?
When reading technical documents, it helps to know that the term root is used in two distinct ways: The "root user" and the "root directory". The root directory is the highest directory level of a disk. The files and folders you see when you open (double-click) your hard disk icon are the contents of that disk's root directory. A directory is represented graphically as a folder. You may know your home directory as your "home folder". The terms "folder" and "directory" are generally interchangeable. A user's short name is also the name of his home directory. The root user shares its name with its own home directory, which is the first (or highest) level of the disk directory. The Finder and the Terminal show different contents for the root directory. Some items in the root directory are made invisible when viewed in the Finder. This reduces visual clutter and enhances simplicity. Users familiar with UNIX-style command line may use the Terminal utility to view everything in a directory.
Important notes
1. Only the owner of a computer or its designated administrator(s) should have an administrator account or the root password.
2. Any user with an administrator account can become the root user or reset the root password.
3. A root password should be difficult to guess, containing both numbers and letters within the first eight characters.
4. A root user has the ability to access other users' files.
5. The root user has the ability to relocate or remove required system files and to introduce new files in locations that are protected from other users.
How to enable the root user
Mac OS X 10.5 or later (Mac OSX Leopard)
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, and 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, verify fields, and then click OK.
Mac OS X 10.4.x or earlier (Mac OSX Tiger)
1. Click the Finder icon in the Dock.
2. From the Go menu, choose Applications.
3. Open the Utilities folder.
4. Open the NetInfo Manager utility.
5. Click the lock in the NetInfo Manager window.
6. Enter an administrator account name and password, then click OK.
7. For Mac OS X 10.2 and later, choose Enable Root User from the Security menu.
8. For Mac OS X 10.0 and 10.1, choose Security from the Domain menu, then Enable Root User from the submenu.
9. If you have not previously set a root password, an alert box may appear that says "NetInfo Error," indicating that the password is blank. Click OK.
10. Enter the root password you wish to use and click Set.
11. Enter the password again for verification and click Verify.
12. Click the lock again to prevent changes.
For Mac OS X 10.2 and later (Mac OSX Panther and Mac OSX Jaguar)
1. If you are logged in, choose Log Out from the Apple menu.
2. If you are logging in from a list of usernames with pictures, click other.
3. In the Name field, type: root
4. In the Password field, type the password you defined in the steps above.
How to disable the root user
Mac OS X 10.5 or later (Mac OSX Leopard)
1. Click the Finder icon in the Dock.
2. From the Go menu, choose Utilities.
3. Open Directory Utility.
4. Click the lock in the Directory Utility window.
5. Enter an administrator account name and password, then click OK.
6. Choose Disable Root User from the Edit menu.
Mac OS X 10.4.x or earlier (Mac OSX Tiger)
1. Open NetInfo Manager. It's in the Utilities folder.
2. Click the lock.
3. Enter the name and password for an administrator account and then click OK.
For Mac OS X 10.2 and later (Mac OSX Panther and Mac OSX Jaguar)
1. Choose Disable Root User from the Security menu. |