yet pam_tally2

Support for security such as Firewalls and securing linux
Post Reply
oscaroxy
Posts: 33
Joined: 2014/02/05 20:18:54

yet pam_tally2

Post by oscaroxy » 2014/02/05 20:29:49

I've centos 6.5 and I setted password-auth:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.

auth required pam_env.so
auth required pam_tally2.so onerr=fail deny=3 unlock_time=60
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so

account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 500 quiet
account required pam_permit.so
account required pam_tally2.so

password requisite pam_cracklib.so try_first_pass retry=3 type=
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so


I saved this file, but when I try to login with bad password then I can try more 3 time (like setted), in particular I can try 5 time before I receve the message "too many authentication failure for user " and I haven't to wait 60 seconds. I've setted only this file and I haven't done other step (for istance restart service), what do I mistake?
thanks

Post Reply