How to configure
password policy in Linux
Configure
Password Policy
#vi /etc/login.defs
Edit the file as follows:
PASS_MAX_DAYS 42
PASS_MIN_DAYS 7
PASS_MIN_LEN 8
PASS_WARN_AGE 14
PASS_MIN_DAYS 7
PASS_MIN_LEN 8
PASS_WARN_AGE 14
Type ESC:x!
to save and exit
No comments:
Post a Comment