I've set up sudo not to prompt for password by editing the sudoers file:myuser ALL=(ALL:ALL) NOPASSWD: ALLAnd it works fine, running sudo with no password prompting. But when entering sudo -v I noticed that it prompted for password, only once. I know what sudo -v does, from the manual:If given the -v (validate) option, sudo will update the user's time  stamp, prompting for the user's password if necessary.  This extends  the sudo timeout for another 15 minutes (or whatever the timeout is  set to in sudoers) but does not run a command.And I know I don't need to use it anyway (or am I wrong?).The question is, why sudo -v prompted for password when sudo is configured not to ask that user from password? And especially when sudo -v is run afterwards another sudo command: why the timestamp isn't updated unless sudo -v is run exiplicitly?My machine is running Ubuntu Server 11.10 if that mattered.EDIT: running sudo sudo -v requires no password, but doesn't seem to update the timestamp because when immediately followed by sudo -v, it prompts for password again.What is the mechanism used in updating sudo timestamp? Why the timestamp is not updated when running any sudo command and then running sudo -v ??
Why sudo timestamp is not updated when NOPASSWD is set?
sudo;prompt;timestamps