How to change password max age limits for new and pre-existing users

Solution Verified - Updated -

Issue

  • How do I change password max age limits to new and pre-existing users?
  • New password ageing policy created in /etc/login.defs is only being applied to new users and not to existing users.
  • Application is showing the warning for the number of days pending to change password for newly created users only. This message message also be returned for users those existed before the change to login.defs.
  • How to change password ageing policy for new and pre-existing users

Environment

  • Red Hat Enterprise Linux (All Versions)
  • shadow-utils

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