If user tries multiple attempt to login to the server, account will be locked. Using password command will not work. So you can use pam_tally2 command to see the failed attempts.
# pam_tally2 --reset --user clanty
Login Failures Latest failure From
clanty 50 12/19/11 14:24:53 166.155.22.55
# passwd -u clanty
# passwd clanty
# chage -d 0 clanty # force user to change pw.
No comments:
Post a Comment