add this in your
/etc/login.defs
PASS_MAX_DAYS 30 # for maximum password age, in days
PASS_MIN_DAYS 7 # for minimum password age, in days
PASS_MIN_LEN 8 # for minimum password length
PASS_WARN_AGE 30 # for warning age, in days
to enable aging with already existing users
# sudo chage -M <days> <user>
ex.
# sudo chage -M 30 linus
No comments:
Post a Comment