mention that when specifying a uid for the -u option the shell may require that the # be escaped
This commit is contained in:
12
sudo.pod
12
sudo.pod
@@ -288,11 +288,13 @@ option.
|
|||||||
|
|
||||||
=item -u
|
=item -u
|
||||||
|
|
||||||
The B<-u> (I<user>) option causes B<sudo> to run the specified command
|
The B<-u> (I<user>) option causes B<sudo> to run the specified
|
||||||
as a user other than I<root>. To specify a I<uid> instead of a
|
command as a user other than I<root>. To specify a I<uid> instead
|
||||||
I<username>, use I<#uid>. Note that if the I<targetpw> Defaults
|
of a I<username>, use I<#uid>. When running commands as a I<uid>,
|
||||||
option is set (see L<sudoers(5)>) it is not possible
|
many shells require that the '#' be escaped with a backslash ('\').
|
||||||
to run commands with a uid not listed in the password database.
|
Note that if the I<targetpw> Defaults option is set (see L<sudoers(5)>)
|
||||||
|
it is not possible to run commands with a uid not listed in the
|
||||||
|
password database.
|
||||||
|
|
||||||
=item -V
|
=item -V
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user