LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2012, 12:28 PM   #1
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
LOGIN.DEFS defaults


can anyone post the default file contents of login.defs for rhel 5.7 and 5.8

i ran into a odd situation and need to do some digging. recently some UID's on some systems had their password expire (90days). seems to only be the case on v5.8, but i am not 100% if someone changed login.defs or the defaults changed between v5.7 to v5.8

thnx
LK
 
Old 09-02-2012, 07:55 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I don't have a 5.8 box handy but UID_MIN should still be 500, you can verify the shadow-utils package (rpm -V) to confirm that it has been modified or reinstall shadow-utils (yum reinstall ..) to get the original back.

Sorry, did you mean user accts or system accts ?

Last edited by kbp; 09-02-2012 at 07:56 PM.
 
Old 09-02-2012, 08:59 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Code:
]$ curl -s "ftp://mirror.switch.ch/pool/1/mirror/scientificlinux/5rolling/i386/SL/shadow-utils-4.0.17-20.el5.i386.rpm"\
| rpm2cpio | cpio --extract --make-directories --verbose && grep -v ^# etc/login.defs|grep .
MAIL_DIR        /var/spool/mail
PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_MIN_LEN    5
PASS_WARN_AGE   7
UID_MIN                   500
UID_MAX                 60000
GID_MIN                   500
GID_MAX                 60000
CREATE_HOME     yes
UMASK           077
USERGROUPS_ENAB yes
MD5_CRYPT_ENAB yes
 
Old 09-04-2012, 08:24 AM   #4
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by kbp View Post
I don't have a 5.8 box handy but UID_MIN should still be 500, you can verify the shadow-utils package (rpm -V) to confirm that it has been modified or reinstall shadow-utils (yum reinstall ..) to get the original back.

Sorry, did you mean user accts or system accts ?
i am looking for PASS_MAX_DAYS, which looks like 99999
 
  


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
umask & /etc/login.defs gepesz Linux - Software 2 09-04-2011 03:02 AM
I deleted login.defs by a mistake :( mortinoi Slackware 8 05-07-2010 01:57 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:34 AM.

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