Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th January 2009, 07:47 PM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
Sudo password timeout

I recently switched from ubuntu..


Is there a password timeout for sudo.


If so, I would like to have sudo ask for the password every single time.


How do I do this.


what command do I use in the sudoers file.


Also, where do I place the command in the sudoers file.



NOTE: I already have sudo enabled.




Thanks,

AnimeFreak
Reply With Quote
  #2  
Old 17th January 2009, 09:30 PM
madmix Offline
Registered User
 
Join Date: Jan 2009
Posts: 10
Hi AnimeFreak,

As root enter visudo, look for the section of Defaults and add the following line:

Code:
Defaults    timestamp_timeout = 0
Then quit VI (Esc followed by :wq).
Reply With Quote
  #3  
Old 20th January 2009, 10:02 AM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
I have one more question.


When I have to authenticate as root to do things like mange users and groups or the firewall with the Fedora Firewall GUI, it asks for the root password, I enter it, and manage the users and groups, or the firewall.

A couple of minutes later I do the same thing but am not required to enter the root users password.



How can I make it so that I am required to enter root's password every time.
Reply With Quote
  #4  
Old 20th January 2009, 10:06 PM
madmix Offline
Registered User
 
Join Date: Jan 2009
Posts: 10
Enter the following commands:
Code:
su -
cd /etc/pam.d
sed -i.bkp 's/^auth.\+pam_timestamp.so$/& timestamp_timeout=0/' config-util
A number of graphical administrative tools provide users with elevated privileges for up to five minutes using the pam_timestamp.so module. The sed command above specifies a period of 0 seconds for which the timestamp is valid. The file modified, config-util, is included in the PAM configuration files related to these graphical tools which intend to cache successful authentication attempts.
Reply With Quote
  #5  
Old 20th January 2009, 11:23 PM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
Quote:
Originally Posted by madmix View Post
Enter the following commands:
Code:
sed -i.bkp 's/^auth.\+pam_timestamp.so$/& timestamp_timeout=0/' config-util

Is all of the above code one command?
Reply With Quote
  #6  
Old 21st January 2009, 01:10 PM
madmix Offline
Registered User
 
Join Date: Jan 2009
Posts: 10
Yeah, each line is one command. You can copy and paste it.

Code:
sed -i.bkp 's/^auth.\+pam_timestamp.so$/& timestamp_timeout=0/' config-util
This sed line makes a backup of file config-util, copying it to a file with prefix .bkp (config-util.bkp) and then updates the original file in place -- this is the -i switch. The one-liner sed script uses a substitution command, s/what_to_look_for/replacement/, to update a line whose first characters are auth and last ones pam_timestamp.so. When it finds such a line it appends timestamp_timeout=0 to it, which is the option we want to modify from the default of 300.

You can do it by hand if you wish. It is a small modification.
Reply With Quote
  #7  
Old 21st January 2009, 04:27 PM
AnimeFreak Offline
Registered User
 
Join Date: Jan 2009
Posts: 267
thanks for the info.
Reply With Quote
  #8  
Old 21st January 2009, 11:26 PM
madmix Offline
Registered User
 
Join Date: Jan 2009
Posts: 10
You're welcome.
Reply With Quote
Reply

Tags
password, sudo, timeout

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System/Administration Menu not prompting for password, then saying wrong password soylentman Using Fedora 7 13th September 2009 12:29 AM
How stop request for password to password manager whenever logs in to wifi? 6tr6tr Using Fedora 7 27th June 2009 05:46 PM
Is there a way to use sudo password with the gui (gnome)? Thaidog Using Fedora 1 14th January 2009 02:41 AM
Using kdesu or sudo without password Krister Hallerg Using Fedora 17 11th March 2007 05:35 AM
what is the sudo password? acerfedora Using Fedora 7 22nd July 2006 04:43 PM


Current GMT-time: 04:34 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat