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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In