Raymond Ops
Jul 12, 2025 · Information Security
How to Enforce Password Expiration and Complexity on Linux Systems
Learn how to configure password aging and enforce complexity rules on Linux by editing /etc/login.defs and /etc/pam.d/system-auth, including setting maximum password age, minimum length, character class requirements, and preventing reuse of recent passwords, with practical sed commands and example configurations for CentOS 6 and 7.
Password ComplexityPassword policySecurity
0 likes · 8 min read
