[sudo-users] combination of -v and -u doesn't work anymore?

Todd C. Miller Todd.Miller at courtesan.com
Wed Dec 9 09:05:16 EST 2009


Specifying the -u flag along with -v has no meaning.  All you need
is "sudo -v" to refresh the timestamp.

 - todd

In message <f832c03b0912090328q35753793k73942295d36a2d8b at mail.gmail.com>
	so spake Gerd Niemetz (gerd.niemetz):

> Hi!
> 
> I have two RedHat boxes, one with package sudo-1.6.7p5-30.1.3, the other
> with sudo-1.6.9p17-5.el5.
> On both machines i have this configuration:
> Defaults:apache targetpw, timestamp_timeout=5, passwd_tries = 1,
> passwd_timeout = 1
> apache ALL = (<userx>) PASSWD: <the_command>
> 
> On the first machine, the following command does work:
> echo "<password_of_userx>" | sudo -S -u <userx> <the_command> (running as
> user apache)
> 2 minutes later (for example)
> sudo -u <userx> -v (to refresh the timeout)
> 
> 
> On the second machine:
> echo "<password_of_userx>" | sudo -S -u <userx> <the_command> (also as user
> apache)
> 3 minutes later (for example)
> sudo -u <userx> -v (also to refresh the timeout)
> 
> This happens:
> sudo: the `-u' and '-v' options may not be used together
> usage: sudo -h | -K | -k | -L | -l | -V | -v
> usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
>             {-i | -s | <command>}
> usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
> 
> Is there any workaround or something i missed?
> 
> best regards
> Gerd
> ____________________________________________________________ 
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
> 




More information about the sudo-users mailing list