Skip to content

Instantly share code, notes, and snippets.

@sandheepg
Created March 8, 2017 05:49
Show Gist options
  • Select an option

  • Save sandheepg/9a884ac3116d608aad111a13952cf75a to your computer and use it in GitHub Desktop.

Select an option

Save sandheepg/9a884ac3116d608aad111a13952cf75a to your computer and use it in GitHub Desktop.
sudo not working

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment