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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.