sudo: no valid sudoers sources found, quitting
sudo: no valid sudoers sources found, quitting
when trying to enter as root user with command sudo su –
I get below error :
[email protected]:~$ sudo su - >>> /etc/sudoers: syntax error near line 24 <<< sudo: parse error in /etc/sudoers near line 24 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
hiberstackers Edited question May 28, 2021
Execute the below command in the terminal,
pkexec nano /etc/sudoers
and make sure the contents of the file is as below,
If you do not see the contents as shown in the above screenshot, then edit the file and add the above-shown uncommented lines as it is. Save the file and then try to log in to the root user.
vito Answered question February 24, 2021