Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

up vote 15 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. )

share|improve this answer

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

sudo -k
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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