I am getting sudo errors, how do I fix this error?
sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting
sudo
I am getting sudo errors, how do I fix this error?
sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting
Best Answer
First Option
Following this post:
A black terminal should come up, at this point you can run this command (you should have root privileges):
Alternatively
You will have to put Ubuntu onto a LiveCD, boot into the LiveCD, mount your Ubuntu Partition on the Hard Drive (Open a file browser, like Nautilus, and click your Ubuntu Partition; or click Places->"xxGB Partition/Your Ubuntu Partition").
Then, open a terminal within the LiveCD session and type these two commands:
Extra Problems
If there are any errors (as posted below), follow the error prompt and adjust each file accordingly using one of the above two steps:
Fix by following through with:
Both of these commands should be used appropriately with the outlined steps above. They will change the file permissions associated with that file. 0440 will give the owner (root) and the group read permissions and 0700 will give the owner (root), read, write and execute permissions.