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

Gerd Niemetz gerd.niemetz at gmail.com
Wed Dec 9 06:28:16 EST 2009


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



More information about the sudo-users mailing list