Rate this page del.icio.us  Digg slashdot StumbleUpon

Tips and tricks: How do I set default password expiration for new accounts?

by the editorial team

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.

11 responses to “Tips and tricks: How do I set default password expiration for new accounts?”

  1. scott says:

    Will this work when configured as an OpenLDAP client and the accounts are all stored in OpenLDAP?

  2. tom says:

    is there a way to force a password change after a user logged in for the first time?

  3. XpucToB says:

    tom: Try chage -d 0

  4. XpucToB says:

    tom: I missed the user-id part on the end. Try chage -d 0

  5. XpucToB says:

    Actually looks like I did not miss it. It is automatically removed.

  6. freetranslation509 says:

    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.

  7. abby-wambach580 says:

    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.

  8. full-metal-alchemist475 says:

    Nice 2 S U.
    fuff fuff
    fungoid tincture fungoid tincture
    Yeah, thats a good idea, what you are doing here.
    Bye.

  9. futurama-leela177 says:

    Greetings.
    furuba hentai furuba hentai
    futuroma futuroma
    Here you can find a lot of interesting information.
    Have a good time.

  10. gall-bladder406 says:

    Hello.
    gaited morgans gaited morgans
    gamestoplayonline gamestoplayonline
    I have found it! Its very simple to search for information there.
    Dont forget me.

  11. gated-community029 says:

    Greetings.
    gastrocolic reflex gastrocolic reflex
    gay cottaging gay cottaging
    I can give the link to very useful site.
    See yall.

Leave a reply