2008/12/8 Alexander Hall <[EMAIL PROTECTED]>: > Andreas Kahari wrote: >> >> Hi list, >> >> According to the manual for sudo, the -v command line switch does the >> following: >> >> "If given the -v (validate) option, sudo will update the user's >> timestamp, prompting for the user's password if necessary. This >> extends the sudo timeout for another 5 minutes (or whatever the >> timeout is set to in sudoers) but does not run a command." >> >> On my system (CURRENT/amd64), it is obviously not doing this: >> >> $ sudo -K >> $ sudo -v >> $ # no output >> >> Is this changed behaviour, or is it a bug? >> >> The only non-default settings in my sudoers file is "Defaults >> passwd_timeout = 0", and I haven't used "timestamp_timeout". > > If so you should not be able to run sudo other than as root.
Ok, so I have added my own user to the sudoers file, just like the root user ("ak ALL=(ALL) SETENV: ALL") and I've turned the insults off ("Defaults !insults") and allowed for running xfsm-shutdown-helper without a password ("%users ALL=(ALL) NOPASSWD: /usr/local/libexec/xfsm-shutdown-helper") which means it's not the default sudoers file, but I don't touch NOPASSWD in any other way and I don't modify the timestamp_timeout. > > My guess is that you have the following uncommented: > > %wheel ALL=(ALL) NOPASSWD: SETENV: ALL It's still commented out in my file (see my response to Todd). > > /Alexander > Andreas -- Andreas Kahari Somewhere in the general Cambridge area, UK