Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-06-2006, 09:55 AM   #1
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
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?
Old 12-06-2006, 10:11 AM   #2
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

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

Defaults        env_reset,timestamp_timeout=0
at the top.

Old 12-06-2006, 10:14 AM   #3
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
thanks, that hit the spot.
Old 12-06-2006, 10:14 AM   #4
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
man sudoers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No password for sudo? orange400 Linux - Software 9 03-18-2012 10:08 AM
sudo password...? yubimusubi Linux - General 15 09-04-2009 12:08 AM
Require sudo to need 2 password Dralnu Linux - Security 2 05-19-2006 08:52 PM
sudo password problem Murdock1979 Linux - General 6 04-26-2006 11:39 PM
make sudo ask for a password andy753421 Linux - Security 1 01-13-2005 07:32 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration