Running SUDO as root fails to run commands as other users with error : "root is not in the sudoers file. This incident will be reported." when SSSD provides sudo rules

Solution Verified - Updated -

Issue

When I run 'sudo -u ' when the sudo rules are provided by sssd I get the error below:

root is not in the sudoers file. This incident will be reported.

I want to manage sudo access completely via LDAP so nsswitch.conf file should look like below:

sudo: sssd  # the `files` paramater is missing

Environment

  • Red Hat Enterprise Linux 6.4

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