LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   LOGIN.DEFS defaults (http://www.linuxquestions.org/questions/linux-server-73/login-defs-defaults-4175425006/)

Linux_Kidd 08-31-2012 12:28 PM

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

kbp 09-02-2012 07:55 PM

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 ?

unSpawn 09-02-2012 08:59 PM

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


Linux_Kidd 09-04-2012 08:24 AM

Quote:

Originally Posted by kbp (Post 4770992)
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


All times are GMT -5. The time now is 07:31 PM.