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
|
I am getting sudo errors, how do I fix this error?
|
||||
|
For me, I had to add one more step the the
|
|||
|
|
|
In Ubuntu you can first strike Ctrl+Alt+T which opens the terminal. After that you can copy-paste the command below with Ctrl+C and paste in terminal with Ctrl+Shift+V.
|
||||
|
|
|
Boot into recovery mode, choose the root shell, and:
Or if you don't want to restart you can use this alternative:
it will change the permission. Try it it will work. |
|||||
|
|
This assumes PolicyKit is installed. If this is a desktop system (rather than a server with no GUI), it is. |
|||
|
|
|
What did you do to get these errors?
|
||||
|
|
First OptionFollowing this post:
AlternativelyYou 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 ProblemsIf 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. |
|||||||||||||||||||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
/etc/sudoers.d/README, that the error can still saysudo: /etc/sudoers is mode 0777, should be 0440? – Eliah Kagan Aug 23 '12 at 14:14