]> granicus.if.org Git - sudo/commitdiff
mention that when specifying a uid for the -u option the shell may require that the...
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Aug 2007 14:24:07 +0000 (14:24 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Aug 2007 14:24:07 +0000 (14:24 +0000)
sudo.pod

index 464dda37fd9cae48236bf483b7787fc1a12f6237..df133a730e2567ba1f2f6065d37e430e9db4c299 100644 (file)
--- a/sudo.pod
+++ b/sudo.pod
@@ -288,11 +288,13 @@ option.
 
 =item -u
 
-The B<-u> (I<user>) option causes B<sudo> to run the specified command
-as a user other than I<root>.  To specify a I<uid> instead of a
-I<username>, use I<#uid>.  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.
+The B<-u> (I<user>) option causes B<sudo> to run the specified
+command as a user other than I<root>.  To specify a I<uid> instead
+of a I<username>, use I<#uid>.  When running commands as a I<uid>,
+many shells require that the '#' be escaped with a backslash ('\').
+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