LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04:21 AM   #1
Corrado
Member
 
Registered: Aug 2004
Location: Washington
Distribution: RHEL
Posts: 174

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, 08:28 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration