Skip to content

Commit

Permalink
Document that when running 'su -m <user> -c <command>', <command> is run
Browse files Browse the repository at this point in the history
within a shell as <user>.

PR:		157078
Submitted by:	Warren Block <[email protected]>
MFC after:	5 days
  • Loading branch information
Glen Barber authored and Glen Barber committed Jun 6, 2011
1 parent 298a6c3 commit 4af4a11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions usr.bin/su/su.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4af4a11

Please sign in to comment.