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
  • 197,895
  • 55
  • 485
  • 740
thombrown
  • 93
  • 2
  • 7

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
  • 88,010
  • I did finally succeed in removing /etc/sudoers.d/sudoers, and that seems to have fixed the problem. I believe my system is now operating in a normal fashion. Thank you!! – thombrown Dec 17 '21 at 06:55