Attempt to clear up some confusion in the following example, by stating

the '-c' argument is passed to the shell, not to su(1), which would
indicate the login class.

	'su -m <user> -c <command>'

Submitted by:	Warren Block <wblock@wonkity.com> (followup to 157078)
MFC after:	5 days
This commit is contained in:
Glen Barber 2011-06-06 19:33:19 +00:00
parent e726a6b70c
commit b6654957c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222770

View File

@ -203,6 +203,12 @@ Note that the
option is required since user
.Dq man
does not have a valid shell by default.
In this example,
.Fl c
is passed to the shell of the user
.Dq man ,
and is not interpreted as an argument to
.Nm .
.It Li "su -m man -c 'catman /usr/share/man /usr/local/man'"
Same as above, but the target command consists of more than a
single word and hence is quoted for use with the