0

entering sudo in a terminal session, I get the following response:

>>> /etc/sudoers.d/sudoers: too many levels of includes near line 30 <<<
sudo: parse error in /etc/sudoers.d/sudoers near line 30
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

When I first installed Ubuntu 20.04, I also removed the login requirement for entering a password on boot, having used other systems which did not have this requirement.

How can I recover from my errors and lack of understanding without re-installing Ubuntu 20.04?

muru
  • 207,228

1 Answers1

1

Remove the /etc/sudoers.d/sudoers file.

Your sudoers file is /etc/sudoers. This is configured to source files in /etc/sudoers.d/. The file giving problems for you is /etc/sudoers.d/sudoers, which is normally not there. So I expect you will resolve the issue deleting that file.

vanadium
  • 97,564