Because Mac OS X is based on Unix, there is a user account on every Mac OS X machine called root. The root account has permission to do everything that is possible; the root account permissions go way beyond even the Administrator account permissions. Because of this, logging in under this root account is very powerful, and it is also dangerous because it isn't that hard to mess up your system, delete directories (whether you intend to or not), and so on. However, because you will sometimes need to log in under the root account to accomplish specific tasks, you should understand and become comfortable with it. You should be logged in under the root account only for the minimum time necessary to accomplish specific tasks. Log in, do what you need to, and then log out of root again. This will minimize the chance of doing something you didn't intend to do because you forgot that you were logged in under root. CAUTION Be careful when you are working in your Mac under the root account. You can cause serious damage to the system as well as to data you have stored on your machine. The root account is a very special user account, but it is still a user account. The full name of the root account is System Administrator and its short name is root. One difference between the root accounts and other accounts is that the root account exists without your having to create it. However, you have to activate the account and assign a password to it before you can begin using it. You can activate the root account and create a password for it by following these steps:
After you have activated the root account and created the root password, you can log in under the root account by performing the following steps:
NOTE The root account does not appear in the list of user accounts on your machine. If you configure the Login window to display this list instead of the Name and Password fields, you won't be able to log in under the root account because you can't see the account on the list. The Home directory for the root account is stored in the location Mac OS X/Private/ var/root, where Mac OS X is the name of your Mac OS X startup volume. If you open this directory, you will see that it contains only two standard directories: Desktop and Library. Because the root account has unlimited permissions, you can add or remove files to any directory on your Mac, including those for other user accounts. You can also make changes to any system file, which is where the root account's power and danger come from. Use the root account only when you really need to. Make sure that other people who use your Mac do not know the root password, or you might find yourself with all sorts of problems. TIP You can also log in to the root account directly in the Terminal window to enter Unix commands using the command line. This can be a faster way to enter a few commands if you are comfortable with command-line interface. |