su - substitute user identity
su [-flm] [login [arguments]]
The su(1) utility requests the password for login (or for login.root, if no login is provided), and switches to that user and group identifier (ID) after obtaining the information. It then executes the login shell of login. If the optional arguments are provided on the command line, they are passed to the shell.
If su(1) is executed by Administrator, no password is requested, and a shell with the appropriate user ID is executed.
When you type su
at the shell prompt, it is
equivalent to typing su Administrator
.
By default, the environment is unmodified with the exception of USER, HOME, and SHELL. HOME and SHELL are set to the target login's default values. The invoked shell is the target login's. This is the traditional behavior of su(1).
The options are as follows:
The -l and -m options are mutually exclusive; the last one specified overrides any previous ones.
By default (unless the prompt is reset by a startup file) the superuser prompt is set to # to distinguish it from the standard C shell or Korn shell prompt.
Environment variables used by su(1):
csh(1)
login(1)
sh(1)
setuser(2)