sudo commands fails with the error "sudo: no valid sudoers sources found, quitting"
This document (000021498) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12
Situation
testuser@server1:/root> sudo su - sudo: no valid sudoers sources found, quitting sudo: error initializing audit plugin sudoers_audit
Resolution
Cause
# /etc/nsswitch.conf passwd: files nis shadow: files nis group: files nis passwd: files ldap shadow: files ldap group: files ldap sudoers: ldap #<--------------- hosts: files ldap dns networks: files dns services: files ldap protocols: files rpc: files ethers: files netmasks: files netgroup: ldap publickey: files bootparams: files automount: files aliases: files
Additional Information
- man sudo
- man nsswitch.conf
Disclaimer
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:000021498
- Creation Date: 15-Jul-2024
- Modified Date:23-Jul-2024
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com