To set the default password expiration when creating new accounts on Red Hat® Enterprise Linux®, edit the /etc/login.defs file.
For example, to set the default maximum number of days a password may be used, change the following parameter in login.defs:
PASS_MAX_DAYS 30
To set the default number of days warning given before a password expires, change the following parameter in login.defs:
PASS_WARN_AGE 7
Please refer the man page of login.defs for more parameters about default password expiration.
Red Hat’s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.
This entry was posted by the editorial team
on Monday, May 5th, 2008 at 2:51 pm and is filed under tips and tricks, technical.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
May 6th, 2008 at 10:19 am
Will this work when configured as an OpenLDAP client and the accounts are all stored in OpenLDAP?
May 7th, 2008 at 3:00 am
is there a way to force a password change after a user logged in for the first time?
May 7th, 2008 at 8:10 am
tom: Try chage -d 0
May 7th, 2008 at 8:16 am
tom: I missed the user-id part on the end. Try chage -d 0
May 7th, 2008 at 8:17 am
Actually looks like I did not miss it. It is automatically removed.
July 18th, 2008 at 4:12 am
Hi.
freescale marathon freescale marathon
friendster.com friendster.com
I know a web-site where there is a lot of funny stuff lays.
Good day.
July 18th, 2008 at 9:02 pm
Hello.
2 face 2 face
rein teen tours rein teen tours
Yeah, thats a good idea, what you are doing here.
Have a good time.
July 19th, 2008 at 6:54 am
Nice 2 S U.
fuff fuff
fungoid tincture fungoid tincture
Yeah, thats a good idea, what you are doing here.
Bye.
July 19th, 2008 at 7:21 pm
Greetings.
furuba hentai furuba hentai
futuroma futuroma
Here you can find a lot of interesting information.
Have a good time.
July 20th, 2008 at 1:50 pm
Hello.
gaited morgans gaited morgans
gamestoplayonline gamestoplayonline
I have found it! Its very simple to search for information there.
Dont forget me.
July 21st, 2008 at 7:24 am
Greetings.
gastrocolic reflex gastrocolic reflex
gay cottaging gay cottaging
I can give the link to very useful site.
See yall.
October 12th, 2008 at 3:36 pm
Ah! Many thanks for this - I’ve been struggling with this all week. Thanks for the nice fix, this is the same issue we faced in our project. It really Helped.