-1
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

I was installing a font by using this command

sudo gnome-font-viewer /home/user-15/Downloads/aclonica/Aclonica.ttf

enter image description here

I used this before and it worked fine but now it is not working, I'm not able to install any font.

Zanna
  • 69,223
  • 56
  • 216
  • 327
Tarun Narula
  • 1
  • 1
  • 2
  • 1
    I found a similar post here: http://askubuntu.com/questions/304212/how-to-solve-sudo-etc-sudoers-d-is-world-writable – Erik Feb 24 '17 at 06:36
  • That answer is'nt working at my side – Tarun Narula Feb 24 '17 at 06:41
  • @TarunNarula Please [edit](http://askubuntu.com/posts/886769/edit) your question and add what you tried and what didn't work. – MadMike Feb 24 '17 at 07:03
  • @MadMike I edited my question – Tarun Narula Feb 24 '17 at 07:14
  • @TarunNarula Please add what you tried from this question [How to solve "sudo: /etc/sudoers.d is world writable"](http://askubuntu.com/questions/304212/how-to-solve-sudo-etc-sudoers-d-is-world-writable) and what didn't work. – MadMike Feb 24 '17 at 07:16
  • I use that cmd Run pkexec chmod 0755 /etc/sudoers.d – Tarun Narula Feb 24 '17 at 07:18
  • pkexec chmod 555 /etc/sudoers pkexec chmod 555 /etc/sudoers.d/README – Tarun Narula Feb 24 '17 at 07:18
  • @TarunNarula It would be easier to follow what you have tried if you [edit](http://askubuntu.com/posts/886769/edit) and update your question with that information, instead of using comments. – MadMike Feb 24 '17 at 07:20

1 Answers1

0
  1. Boot up an Ubuntu live distro (via USB or CD).
  2. Mount your root file system. (let's say your root file system was mounted to /mnt)
  3. Execute sudo chmod o-w /mnt/etc/sudoers.
Sam Gleske
  • 360
  • 1
  • 10