Showing results for 
Search instead for 
Did you mean: 

Password Aging Policy

Waqar Razi
Regular Advisor

Password Aging Policy

We need have migrated two Linux servers and have also setup new users with the temporary passwords. When these users will login, they will be asked to change their passwords on intial login.

At this stage, I have two questions:

1- How can we prevent the users from being forced to change their passwords? Like we dont want users to be forced to change their password.

2- Right now, they can have strong passwords with Capital letters and special characters, we also want to disable that" Can some one please tell me how can we do that?

Thanks in advance for your help.
Ivan Ferreira
Honored Contributor

Re: Password Aging Policy

1- The fist one is controled with the chage -g command.

2- The second one is controlled by the pam_cracklib password module in your pam configuration file, that could be /etc/pam.d/system-auth
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Occasional Advisor

Re: Password Aging Policy


For 1) you can edit the /etc/login.defs for setting the password aging by min and max no of days.