SUDO not working

Posted . Visible to the public.

sudo: /etc/sudoers is mode 0640, should be 0440?

When a similar message appears when you try to run sudo on your machine, the problem is likely with the permissions of /etc/sudoers file.

Try running

pkexec chmod 0440 /etc/sudoers

The command asks for password. Check if it ran successfully by typing

echo $?

Upon successful execution, sudo should be working on your machine.

Sandheep
Last edit
Sandheep
Posted by Sandheep to Sandheep's deck (2015-12-17 06:37)