Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I have succeeded in messing up /etc/sudoers and /etc/sudoers.d/sudoers. I can no longer access either of these files

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading