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

Pluggable Authentication Modules (PAM): Controlling Access in Linux Pluggable Authentication Modules (PAM) form the backbone of authentication and access control on most modern Linux systems. In my work, PAM is often overlooked or misunderstood. Administrators know it exists but rarely configure it beyond the defaults. That leaves opportunities for weak passwords, mismanaged access, and non-compliance. … Read more