Friday, January 13, 2012

linux: password aging

to enable password aging with users to be created

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

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...