ubase/su.1

21 lines
745 B
Groff
Raw Normal View History

2014-04-13 12:23:04 -04:00
.TH SU 1 ubase-VERSION
.SH NAME
\fBsu\fR - Run a command with a substitute user and group ID
.SH SYNOPSIS
2014-06-09 11:40:00 -04:00
\fBsu\fR [\fB-lp\fR] [\fIusername\fR]
2014-04-13 12:23:04 -04:00
.SH DESCRIPTION
\fBsu\fR allows to run commands with a substitute user and group ID.
When called without arguments, su defaults to running an interactive shell
as root. For backward compatibility su defaults to not change the current
directory and to only set the environment variables \fBHOME\fR and \fBSHELL\fR
2014-06-09 11:40:00 -04:00
(plus \fBUSER\fR and \fBLOGNAME\fR if the target \fIusername\fR is not root).
2014-04-13 12:23:04 -04:00
.SH OPTIONS
.TP
\fB-l\fR
Starts the shell as login shell with an environment similar to a real
login.
.TP
\fB-p\fR
Preserves the whole environment. This option is ignored if the \fB-l\fR
option is specified.