This is what happens when i use sudo
.
Plus I can't update Ubuntu and I can't open the Software Center.
This is what happens when i use sudo
.
Plus I can't update Ubuntu and I can't open the Software Center.
sudo
is unuseable, but you still have pkexec
.
So:
pkexec chmod 440 /etc/sudoers
pkexec chmod 755 /etc/sudoers.d
should fix that as well, however that's not normal. Did you run some strange command recently? Let me know if pkexec chmod 755 /etc/sudoers.d
fixes that for good, however be aware that your installation looks corrupted. There might be other folders / files with the wrong permissions, or even worse things. If you remember having run some command which changed some permissions recursively please post it.
Okay, so your main problem is that /etc/sudoers is "writable." as stated by that error message you were getting
chmod 440 /etc/sudoers
that changes the file permission so that it isn't "global writable" and rather just readable to root.
also ensure that the file is owned by root
ls -l /etc/sudoers
that should give you something that looks like
-r--r----- 1 root root 745 Feb 10 2014 sudoers
the -r--r----- root root is the important part. If it's different, then you'll have to change the files ownership, but I doubt that could get screwed up.
I'm thinking that should fix your problem. Try that and let me know if it doesn't work.