PAM hardening with faillock: lockouts, password and sudo policy
PAM hardening with faillock: lockouts, password policy, sudo hygiene Last updated: 20 Aug 2025 Goal: sensible lockouts (with audit), sane password policy for local accounts, and predictable sudo behaviour. Adjust paths for your distro. 1) faillock defaults # /etc/security/faillock.conf deny = 5 unlock_time = 600 even_deny_root audit 2) Enable faillock in PAM stacks Ubuntu/Debian (PAM … Read more