Get passwd and shadow not in sync when executing system-config-users

Solution Verified - Updated -

Issue

When  launch system-config-users the following message comes :

The user database cannot be read.  This problem is most likely caused by a mismatch in /etc/passwd and /etc/shadow.  The program will exit now

looking at the content of both file and they have the same entries.   execute pwck and it return the following :

user adm: directory /var/adm does not exist

user news: directory /etc/news does not exist

user uucp: directory /var/spool/uucp does not exist

user gopher: directory /var/gopher does not exist

user pcap: directory /var/arpwatch does not exist

pwck: no changes

Environment

  • Red Hat Enterprise Linux 4u8

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