Tagged articles
2 articles
Page 1 of 1
Raymond Ops
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
How to Enforce Password Expiration and Complexity on Linux Systems
MaGe Linux Operations
MaGe Linux Operations
Dec 5, 2024 · Information Security

How to Configure Linux Password Expiration and Complexity Rules

This guide explains how to set password aging limits in /etc/login.defs, modify them with sed, and enforce password complexity on CentOS systems using PAM modules such as pam_cracklib and pam_pwquality, including recommended values and practical examples.

LinuxPassword ComplexityPassword policy
0 likes · 9 min read
How to Configure Linux Password Expiration and Complexity Rules