Single-User Mode

Like other Unix systems, Mac OS X has an unadvertised feature known as single-user mode, which lets you boot the system under the most minimal terms. As the name implies, it allows only one user access—that user is whatever human seated at the keyboard directly plugged into the machine. No daemons run, the network interfaces lie dormant, and not even the root filesystem is mounted.

You will seldom, if ever, use your Mac in single-user mode. Some low-level diagnostic activities might require it—this is where you can manually and safely run /sbin/fsck -y to check and repair filesystem errors, for example.

Because the one user who logs in during single-user mode happens to be root, you can also change all the system’s user passwords, including that of the root account itself. Thus, you can consider single-user mode an emergency back door into the system, should your passwords become lost and you don’t have a system CD available.

Tip

Mac OS X also lets you log in through a plain Unix text console after the machine has started up. See Chapter 21.

Booting into Single-User Mode

You can activate single-user mode only during system startup. To enter single-user mode, hold down

Booting into Single-User Mode

-S during startup, while the Apple logo is displayed. After a moment, instead of the blue Mac OS X startup screen, everything goes black, and startup console messages start spilling down the screen in ...

Get Mac OS X in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.