February 13, 2013

Change timestamp for sudo password input

in terminal:

sudo visudo

find the following line

defaults env_reset

change into

Defaults env_reset , timestamp_timeout=xx 

xx: time
eg: 10 means 10mins and 30 means half hour.

ps: -1 means when you logout or shutdown, the terminal will remember your password, but for the security reason not recommend.

No comments:

Post a Comment