2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Document the restriction on uids specified via -u when targetpw is set.

This commit is contained in:
Todd C. Miller
2004-08-06 23:31:20 +00:00
parent 252093fa60
commit bc1b9cb80d
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View 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