By default, root access in Darwin is disabled. Trying to use
su to change to root within the Terminal will
fail. You have to enable root first using NetInfo.
To enable root within Mac OS X, access the Go menu option of Finder,
and double-click on Applications. When the
Applications window opens, double-click on the
Utilities folder. In this folder, select and
open NetInfo.
When NetInfo opens, select the Domain menu item and then Security.
You'll need to authenticate yourself to the system
first by selecting the Authenticate submenu option. Once you provide
a password (and the system determines you have the authority to
enable or disable root), accessing the Security menu again will show
a newly enabled option: Enable Root User. Clicking on this enables
root. However, you'll need to reauthenticate one
more time to ensure the change goes through.
Once root is enabled for the system, it stays enabled until you
disable it again. With root enabled, you'll be able
to use su to login as root.
-- SP
 |  |  |
49.11. Providing Superpowers with sudo |  | 49.13. Disable logins |