version 1.18, 2003/06/03 02:56:17 |
version 1.19, 2003/06/10 09:12:12 |
|
|
and the target login has a user ID of 0 then the |
and the target login has a user ID of 0 then the |
.Ev PATH |
.Ev PATH |
variable and umask value |
variable and umask value |
(see |
(see |
.Xr umask 2 ) |
.Xr umask 2 ) |
are always set according to the |
are always set according to the |
.Pa /etc/login.conf |
.Pa /etc/login.conf |
|
|
prompt is set to |
prompt is set to |
.Dq Sy \&# |
.Dq Sy \&# |
to remind one of its awesome power. |
to remind one of its awesome power. |
|
.Sh ENVIRONMENT |
|
.Bl -tag -width LOGNAME |
|
.It Ev HOME |
|
Default home directory of real user ID unless modified as |
|
specified above. |
|
.It Ev LOGNAME |
|
The user ID is always the effective ID (the target user ID) after an |
|
.Nm |
|
unless the user ID is 0 (root). |
|
.It Ev PATH |
|
Default search path of real user ID unless modified as specified above. |
|
.It Ev TERM |
|
Provides terminal type which may be retained for the substituted |
|
user ID. |
|
.It Ev USER |
|
Same as |
|
.Ev LOGNAME . |
|
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
.Bl -tag -width 5n -compact |
.Bl -tag -width 5n -compact |
.It Li "$ su bin -c makewhatis" |
.It Li "$ su bin -c makewhatis" |
|
|
.Pp |
.Pp |
.It Li "$ su -a skey -l foo" |
.It Li "$ su -a skey -l foo" |
Same as above, but use S/Key for authentication. |
Same as above, but use S/Key for authentication. |
.El |
|
.Sh ENVIRONMENT |
|
.Bl -tag -width LOGNAME |
|
.It Ev HOME |
|
Default home directory of real user ID unless modified as |
|
specified above. |
|
.It Ev LOGNAME |
|
The user ID is always the effective ID (the target user ID) after an |
|
.Nm |
|
unless the user ID is 0 (root). |
|
.It Ev PATH |
|
Default search path of real user ID unless modified as specified above. |
|
.It Ev TERM |
|
Provides terminal type which may be retained for the substituted |
|
user ID. |
|
.It Ev USER |
|
Same as |
|
.Ev LOGNAME . |
|
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr csh 1 , |
.Xr csh 1 , |