Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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:

  • 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.