When I am trying to add a user, the following error occurs: mismatch in /etc/passwd and /etc/shadow. What does this mean?

Updated -

This can occur when there is inconsistencies between the /etc/passwd and /etc/shadow files. The offending account needs to either be modified or removed. To find out which account is causing the issue run the following command as root:


All entries in the /etc/passwd and /etc/shadow are checked to see that t...

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