aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su
diff options
context:
space:
mode:
authorMark Ovens <marko@FreeBSD.org>2000-08-05 23:03:12 +0000
committerMark Ovens <marko@FreeBSD.org>2000-08-05 23:03:12 +0000
commit54af9cb58fec45e47a4fa7b5b9a3e28307bbdd44 (patch)
treec16cd1757a358c0b72531feeaabb92bd54b10373 /usr.bin/su
parent9dcab5306e65192c3c614e8d34b4ec33f841144d (diff)
Notes
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.114
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1
index 54ed870922d33..f245e888e906c 100644
--- a/usr.bin/su/su.1
+++ b/usr.bin/su/su.1
@@ -41,6 +41,7 @@
.Nd substitute user identity
.Sh SYNOPSIS
.Nm
+.Op Fl
.Op Fl Kflm
.Op Fl c Ar class
.Op Ar login Op Ar args
@@ -120,6 +121,9 @@ The invoked shell is the target login's, and
will change directory to the target login's home directory.
Resource limits and session priority are modified to that for the
target account's login class.
+.It Fl
+(no letter) The same as
+.Fl l .
.It Fl m
Leave the environment unmodified.
The invoked shell is your login shell, and no directory changes are made.
@@ -137,6 +141,9 @@ Only allowed for the super-user.
.Pp
The
.Fl l
+(or
+.Fl
+)
and
.Fl m
options are mutually exclusive; the last one specified
@@ -219,8 +226,11 @@ option applies to
.Nm
while the second is an argument to the shell being invoked.
.It Li "su -l foo"
-Pretend a login for user
-.Li foo .
+Simulate a login for user foo.
+.It Li "su - foo"
+Same as above.
+.It Li "su - "
+Simulate a login for root.
.El
.Sh HISTORY
A