How to Use login.defs and PAM for Account Lockouts
TL;DR To implement account lockouts on Debian 13 using login.defs and PAM, follow these concise steps: Configure login.defs: Set parameters for account lockout in /etc/login.defs. Adjust the following settings to enhance security: FAIL_DELAY 3 # seconds to wait before retrying MAX_TRY 5 # maximum failed attempts Caution: Setting MAX_TRY too high may expose your system to brute-force attacks. A value of 5 is generally safe. ...
