SUSE Support

Here When You Need Us

Running sudo as the root user fails when using SSSD

This document (000021090) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12


Unable to perform sudo commands as a root user when using SSSD
# sudo ls -l
root is not in the sudoers file.  This incident will be reported.

# cat /etc/nsswitch.conf
sudoers: sss


Append "files" to the "sudoers: sss" line in the /etc/nsswitch.conf file.
# cat /etc/nsswitch.conf
sudoers: files sss


To enable SSSD as a source for sudo rules, add sss to the sudoers entry in nsswitch.conf(5). See man sssd-sudo.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021090
  • Creation Date: 05-Jun-2023
  • Modified Date:22-Jun-2023
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.