You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: Unable to run sudo to root with error "sudo: no valid sudoers sources found, quitting"

Applies To

Oracle Cloud Infrastructure

Linux x86-64

Symptoms

Unable to run “sudo su –“ command due to issues seen in files located the /etc/sudoers.d / directory

$ sudo su –
sudo: >>> /etc/sudoers.d/90-cloud-init-users: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/90-cloud-init-users: syntax error near line 3 <<<
sudo: >>> /etc/sudoers.d/100-oracle-cloud-agent-users: Alias `PLUGINS' already defined near line 2 <<<
sudo: >>> /etc/sudoers.d/100-oracle-cloud-agent-users: Alias `ISCSIADM' already defined near line 2 <<<
sudo: >>> /etc/sudoers.d/100-oracle-cloud-agent-users: Alias `DMSETUP' already defined near line 3 <<< sudo: parse error in /etc/sudoers.d/90-cloud-init-users near line 1 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!