"chage" command is failing with an error "chage: the shadow password file is not present"

Solution Verified - Updated -

Issue

  • chage command is failing with an error
chage: the shadow password file is not present
  • On running chage command following error is logged in /var/log/secure:
Apr  9 10:00:55 testsystem chage[24934]: can't find the shadow password file

Environment

  • Red Hat Enterprise Linux(RHEL) 6/7
  • PAM

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