]> granicus.if.org Git - sudo/commitdiff
Document the restriction on uids specified via -u when targetpw is set.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 Aug 2004 23:31:20 +0000 (23:31 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 6 Aug 2004 23:31:20 +0000 (23:31 +0000)
sudo.pod
sudoers.pod

index 40542b9b80b73529b451764c18e842c224ad6f31..771ebc28559403f45f137a6a3aa2a6c5f6793758 100644 (file)
--- a/sudo.pod
+++ b/sudo.pod
@@ -269,7 +269,9 @@ in L<passwd(@mansectform@)>.
 
 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>.
+I<username>, use I<#uid>.  Note that if the I<targetpw> Defaults
+option is set (see L<sudoers(@mansectform@)>) it is not possible
+to run commands with a uid not listed in the password database.
 
 =item -v
 
index 96a461ebdba3f21636ea8e5d1e31728a14e7b0a4..0b128e438913dc31cb29cb4bd4061f4f6a4ca80e 100644 (file)
@@ -408,7 +408,9 @@ password of the invoking user.  This flag is I<off> by default.
 
 If set, B<sudo> will prompt for the password of the user specified by
 the B<-u> flag (defaults to C<root>) instead of the password of the
-invoking user.  This flag is I<off> by default.
+invoking user.  Note that this precludes the use of a uid not listed
+in the passwd database as an argument to the B<-u> flag.
+This flag is I<off> by default.
 
 =item set_logname