Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

  • PASS_MAX_DAYS
  • PASS_MIN_DAYS
share|improve this answer

the parameters you are searching for are:
PAM_MAX_DAYS
PAM_MIN_DAYS

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

share|improve this answer

Your Answer

 
discard

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