sudo fails with error "sudo: unknown user: root"

Solution Verified - Updated -

Issue

Users cannot run sudo command, if fails with error:

$ sudo su
sudo: unknown user: root
sudo: unable to initialize policy plugin

User root can not login.

Environment

Red Hat Enterprise Linux (RHEL) 6, 7, 8

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