Mac OS X Snow Leopard: The Missing Manual (Missing Manuals)
< Day Day Up > |
12.9. The Root Account
An administrator's account isn't exactly a skeleton key that gives unfettered access to every corner of the Mac. Even an administrator isn't allowed to remove files from the System folder or other files whose removal could hobble the machine. It turns out that Standard and Administrator aren't the only kinds of accounts. There's one account that wields ultimate power, one person who can do anything to any file anywhere . This person is called the superuser . Unix fans speak of the superuser account ”also called the root account ”in hushed tones, because it offers absolutely unrestricted power. The root account holder can move, delete, rename, or otherwise mangle any file on the machine, no matter what folder it's in. One wrong move ”or one Internet hacker who manages to seize the root account ”and you've got yourself a $2,500 doorstop. That'S why Mac OS X's root account is completely hidden and, in fact, deactivated. There's another reason this account comes turned off: You can enjoy most root-like powers without actually turning on the root account. Here, for example, are some of the things the root account holder can do ”and the ways you can do them without ducking into a phone booth to become the superuser:
Treat the root account, in other words, as you would one of those "Break glass in case of fire" boxes. If you know what you're doing, and you see no alternative, you might be glad the root account is available. System-customization freaks who enjoy editing, say, the look of window title bars may need to enable the root account. And certain pre-Tiger software installers , like the one for Palm Desktop 4.1, won't install correctly except when you're using the root account. You can turn on the root account in any of several ways. One of them involves typing a Unix command or two (Section 17.2), but the technique most people use goes like this:
That'S it ”you arrive at the desktop, where no matter what you do, no error messages regarding access privileges or ownership will interrupt the proceedings . In the words of every movie hero's sidekick: Be careful out there. When you're finished going about your business as a root user, immediately log out again. It's important to rule out the possibility that some clueless or malicious person might wander up to the Mac while you're still logged in as the superuser. In fact, if you don't anticipate needing your superuser powers again soon, consider turning off the root account altogether. (Just repeat steps 1 and 2 on the facing page. In step 3, choose Security Disable Root User.) |
< Day Day Up > |