su.1 (745B)
1 .TH SU 1 ubase-VERSION 2 .SH NAME 3 \fBsu\fR - Run a command with a substitute user and group ID 4 .SH SYNOPSIS 5 \fBsu\fR [\fB-lp\fR] [\fIusername\fR] 6 .SH DESCRIPTION 7 \fBsu\fR allows to run commands with a substitute user and group ID. 8 When called without arguments, su defaults to running an interactive shell 9 as root. For backward compatibility su defaults to not change the current 10 directory and to only set the environment variables \fBHOME\fR and \fBSHELL\fR 11 (plus \fBUSER\fR and \fBLOGNAME\fR if the target \fIusername\fR is not root). 12 .SH OPTIONS 13 .TP 14 \fB-l\fR 15 Starts the shell as login shell with an environment similar to a real 16 login. 17 .TP 18 \fB-p\fR 19 Preserves the whole environment. This option is ignored if the \fB-l\fR 20 option is specified.