LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 04-16-2013, 05:21 AM   #1
Corrado
Member
 
Registered: Aug 2004
Location: Washington
Distribution: RHEL 5.0
Posts: 135

Rep: Reputation: 16
The login.defs file


I was wondering if the settings in the the /etc/login.def supercedes the settings that are defined in /etc/shadow for individual accounts.

If the setting in login.defs says every user has to reset their password every 60 days but the shadow file says 10 days, who wins this?

Point me to any documentation saying this?

Chris
 
Old 04-16-2013, 09:28 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
login.defs is what the system looks at for creating new accts.
Current accts will have whatever they are currently set to ie /etc/shadow.
See chage http://linux.die.net/man/1/chage to change the latter.
 
1 members found this post helpful.
  


Reply


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
LOGIN.DEFS defaults Linux_Kidd Linux - Server 3 09-04-2012 09:24 AM
How to activate FAIL_DELAY in /etc/login.defs ukursat Linux - Security 9 05-15-2007 02:47 AM
login.defs password expiry noir911 Linux - General 1 01-07-2007 12:38 PM
/etc/login.defs binary_0011 Linux - Newbie 1 11-06-2006 09:44 PM
Startup script=/etc/login.defs? ~zoey~ Linux - Newbie 2 11-13-2004 12:44 AM


All times are GMT -5. The time now is 03:33 PM.

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