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
This commit is contained in:
Glen Barber 2011-06-06 15:17:55 +00:00
parent 298a6c3de6
commit 4af4a110a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222758

View File

@ -193,10 +193,10 @@ PAM configuration for
.Sh EXAMPLES .Sh EXAMPLES
.Bl -tag -width 5n -compact .Bl -tag -width 5n -compact
.It Li "su -m man -c catman" .It Li "su -m man -c catman"
Runs the command Starts a shell as user
.Li catman .Li man ,
as user and runs the command
.Li man . .Li catman .
You will be asked for man's password unless your real UID is 0. You will be asked for man's password unless your real UID is 0.
Note that the Note that the
.Fl m .Fl m