Is there any way to make sudo forget my password instantly instead of remembering it for 5 minutes?

link|improve this question

feedback

2 Answers

up vote 10 down vote accepted

Edit your sudoers file by running visudo as root.

Look for the Defaults line, and add timestamp_timeout=0 to the end.

Eg.

Defaults env_reset,timestamp_timeout=0

(Edited: Sorry, got confused, had the wrong keyword. Fixed. )

link|improve this answer
feedback

If you just want to make sudo ask again for the current session

sudo -k
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.