Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How does one set the password expiration parameters on CentOS or Red Hat Linux using PAM? Specifically, I need to set the following:

  1. Maximum number of days that a password may be used.
  2. Minimum number of days allowed between password changes.
share|improve this question

2 Answers 2

There is a file that will do this: /etc/login.defs. Two values you want to look to change here:

share|improve this answer

the parameters you are searching for are:

you'll find a more detailed explanation and some other hints here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.