0

I am facing some issues when i am trying to write sudo command. Ex. If i run $ sudo -i command then i got - This errors : sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin

Please help to solve this errors. Thank you.

Siddhi
  • 1

1 Answers1

0

Error message is self explaining. You should change permissions of /etc/sudoers, but root is needed for that so do from recovery mode:

chown root:root /etc/sudoers
chmod 0440 /etc/sudoers

Check content of file, make sure your username is there, so you allowed to use sudo. Thats all. reboot

LeonidMew
  • 2,734
  • 1
  • 21
  • 38