Wednesday, April 27, 2011

change sudo timeout

sudo has a timeout value that defaults to 15 minutes on ubuntu 10.10.

15 minutes is a life time for the uber paranoid. So you can change it (to say, 1 minute) like this. First open the sudo config file:


$ sudo visudo


Then append timestamp_timeout with your time limit in minutes. Here I set it to 1 minute:

Defaults        env_reset,timestamp_timeout=1
Note, if you want to disable the sudo timeout you can set timestamp_timeout to -1 (not recommended).

No comments:

Post a Comment