On Wed, Oct 12, 2005 at 11:36:34PM -0700, Karl Chen wrote:
> Currently, "sudo -v" will check the timestamp, and prompt
> for the password if necessary.
> 
> I would like a command "sudo -v command" that will prompt
> for the password only if "sudo command" would prompt for the
> password.  I.e., if the user has NOPASSWD access to that
> command, just exit with a 0 return code without prompting.

Can you check whether the -l option will probably do what you intend to
do?

Greetings
Marc

Reply via email to