Reference: su
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:55:19Z

#

| Chapter 2 UNIX Commands |

## su

    su [option] [user] [shell_args]

Create a shell with the effective user ID of another `user` (that is, login as `user`). If no `user` is specified, create a shell for a privileged user (that is, become a superuser). Enter `EOF` to terminate. You can run the shell with particular options by passing them as `shell_args` (e.g., if the shell runs sh, you can specify -c `command` to execute `command` via sh, or -r to create a restricted shell).

### Option

-

  Go through the entire login sequence (i.e., change to `user`'s environment).

Reference: stty |  | Reference: sum