Lock User After 3 Failed Login Attempts

Make sure to take a backup of the following files /etc/pam.d/password-auth /etc/pam.d/system-auth Edit the above two PAM Authentication Configuration and add the following lines: auth required pam_tally2.so deny=3 unlock_time=600 deny=3 : will lock the account…