summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2011-06-06 15:17:55 +0000
committergjb <gjb@FreeBSD.org>2011-06-06 15:17:55 +0000
commit32935a5430c426d6c8fb7d0fd8b9706961957ea9 (patch)
treec2337af4a3e73b4c3c2b3f0f4d55a33910e58a3a /usr.bin/su
parentd3eac6f07d776e4349bbc61d22d863d12096efec (diff)
downloadFreeBSD-src-32935a5430c426d6c8fb7d0fd8b9706961957ea9.zip
FreeBSD-src-32935a5430c426d6c8fb7d0fd8b9706961957ea9.tar.gz
Document that when running 'su -m <user> -c <command>', <command> is run
within a shell as <user>. PR: 157078 Submitted by: Warren Block <wblock@wonkity.com> MFC after: 5 days
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.18
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1
index 8b79d41..f06ce14 100644
--- a/usr.bin/su/su.1
+++ b/usr.bin/su/su.1
@@ -193,10 +193,10 @@ PAM configuration for
.Sh EXAMPLES
.Bl -tag -width 5n -compact
.It Li "su -m man -c catman"
-Runs the command
-.Li catman
-as user
-.Li man .
+Starts a shell as user
+.Li man ,
+and runs the command
+.Li catman .
You will be asked for man's password unless your real UID is 0.
Note that the
.Fl m
OpenPOWER on IntegriCloud