LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Force sudo to re-ask for password? (https://www.linuxquestions.org/questions/linux-security-4/force-sudo-to-re-ask-for-password-507892/)

humbletech99 12-06-2006 09:55 AM

Force sudo to re-ask for password?
 
I want to make sudo re-ask me for my password. It caches it for 5 mins I think, but I realise I don't know how to force it to re-ask.

Does anybody know how to do this?

crazyjimbo 12-06-2006 10:11 AM

Add timestamp_timeout=0 to your list of flags. E.g. my sudoers file has the line

Code:

Defaults        env_reset,timestamp_timeout=0
at the top.

James

humbletech99 12-06-2006 10:14 AM

thanks, that hit the spot.

chort 12-06-2006 10:14 AM

man sudoers
/timestamp_timeout


All times are GMT -5. The time now is 12:48 AM.