How do I set default password expiration for new accounts?

Updated -

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content