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?
|
||||
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. |
|||||||||||||
|
|
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?
|
|||
|
|
|
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. |
|||||
|
|
If the PC is start press Ctrl+Alt+F2 and login as root:
and do:
Following this post:
|
|||||
|
/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