OCI: Unable to run sudo to root with error "sudo: no valid sudoers sources found, quitting"
in Linux
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
Tagged:
0