Tuesday, April 10, 2007

When a short sudo timeout drives you crazy . . .

I've recently discovered an easy configuration option for sudo to make the timeout a little longer.
Just add the following line to your /etc/sudoers config file:

Defaults:your_username_here timestamp_timeout=900

(using your actual system username instead of "your_username_here")
The number at the end is how many seconds you want sudo to wait before prompting for a password again.

1 comment:

Anonymous said...

Thanks very much for this; I was getting really annoyed with it on my Mac. It seems from the man page that the Leopard version of sudo treats the paramater as a number of minutes, as opposed to seconds in the version your Linux distro provides (perhaps this information may be of use to others).

Cheers!