SU(1) | User Commands | SU(1) |
su - become super-user or another user
su [-] [username [arg ...]]
The su command allows one user to get the credentials of another without logging on and off. The default username is root (that is, the super-user).
Unless the caller is the super-user, the user's password must be entered (the exact authentication mechanism may depend on PAM settings for su, see pam(8)). If access is granted, the su command will execute the user's shell from the system's password file with the appropriate user id, group id and supplementary group ids. Any additional arguments will be passed to this shell.
If the first argument is -, a login shell is executed in the user's home directory using default environment variables; only the settings of the DISPLAY and TERM variables are retained. In any case, the PATH environment variable is adjusted.
The su command reads the configuration file /etc/default/su on startup. Lines containing the following strings are interpreted:
env(1), login(1), sh(1), syslog(3), passwd(5), pam(8)
4/17/03 | Heirloom Toolchest |