LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   login.defs password expiry (https://www.linuxquestions.org/questions/linux-general-1/login-defs-password-expiry-516987/)

noir911 01-06-2007 05:19 PM

login.defs password expiry
 
I had password expiry enabled by someone which would expire password in every 90 days. I changed /etc/login.defs not to expire password but the system still comes back every 90 days and asks to change password. Here's what I changed on my login.defs

Quote:

PASS_MAX_DAYS 99999
PASS_MIN_DAYS 7
PASS_MIN_LEN 6
PASS_WARN_AGE 28

btmiller 01-07-2007 11:38 AM

Based on the man page, I think that those settings in /etc/login.defs only set the default values for newly created accounts, e.g. old accounts will still have the restrictions. You can use the chage command as root to change password expiration for existent accounts.


All times are GMT -5. The time now is 12:57 AM.