BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / su.0
SU(1) UNIX Programmer's Manual SU(1)
N\bNA\bAM\bME\bE
su - substitute user id temporarily
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bsu\bu [ -f ] [ - ] [ userid ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bS_\bu demands the password of the specified _\bu_\bs_\be_\br_\bi_\bd, and if it
is given, changes to that _\bu_\bs_\be_\br_\bi_\bd and invokes the Shell _\bs_\bh(1)
or _\bc_\bs_\bh(1) without changing the current directory. The user
environment is unchanged except for HOME and SHELL, which
are taken from the password file for the user being substi-
tuted (see _\be_\bn_\bv_\bi_\br_\bo_\bn(7)). The new user ID stays in force
until the Shell exits.
If no _\bu_\bs_\be_\br_\bi_\bd is specified, ``root'' is assumed. Only users
in the ``wheel'' group (group 0) can _\bs_\bu to ``root'', even
with the root password. To remind the super-user of his
responsibilities, the Shell substitutes `#' for its usual
prompt.
The -\b-f\bf option prevents _\bc_\bs_\bh(1) from executing the .cshrc
file; thus making _\bs_\bu start up faster.
The -\b- option simulates a full login.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
sh(1), csh(1)
Printed 7/9/88 May 5, 1986 1