Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  817 of 909 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12509
Last update: 10-30-08
Issue:
How do I set default password expiration for new accounts?
Resolution:

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.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   817  of  909  >>