Blog

Solved: sudo: parse error in /etc/sudoers near line

Problem:-

sudo: parse error in /etc/sudoers near line 118
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

 

S0lution:- 

You can use the below command again. The old user having wrong info will be updated with below.

echo ‘YOUR_USERNAME ALL=(ALL) ALL’ >> /etc/sudoers

Leave a Reply

Your email address will not be published. Required fields are marked *