Becoming root with su

Becoming root, assuming that you know the root password, is really quite easy. To do so, you just apply the su command (introduced in the Changing Your Identity with su section of (Chapter 3), where you change to the root identity (Code Listing 16.3).

Once again, we’ll say: Being root on a Unix system carries with it a lot of responsibility. First, you must be extraordinarily careful about what you type and where you type it. Every system administrator out there has a horror story about wrecking (to a greater or lesser degree) a system through careless use of the root shell. We’ve done it, too. Second, you must be very responsible about what you do. You can read anything, see anything, watch anything, and change anything. ...

Get Unix Third Edition: Visual Quickstart Guide 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.