Make sudo ask for my password again?

31

5

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

Brendan Long

Posted 2009-12-16T07:56:40.937

Reputation: 1 728

Answers

17

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. )

Blorgbeard is out

Posted 2009-12-16T07:56:40.937

Reputation: 2 565

44

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

sudo -k

Abtin Forouzandeh

Posted 2009-12-16T07:56:40.937

Reputation: 592