1

I can't login as root, this is what happens:

gladiss@gladiss-Lenovo-G580:~$ sudo su
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins

I've tried all commands suggested in similar threads. Nothing helped. Maybe cause this:

enter image description here

6
  • Can you please output the result of ll /usr/lib/sudo/? Also about what file is that image?
    – xZise
    Feb 18, 2014 at 22:05
  • possible duplicate of 'sudo' not working after changing the permissions of '/usr' directory
    – Mitch
    Feb 19, 2014 at 4:10
  • is that account an admin account or is it a guest like account?
    – Zuko
    Feb 19, 2014 at 7:41
  • whenever you do get back on as root, do a sudo passwd as root and change it's password to something you know. That way you can just do a su to login as root. Feb 19, 2014 at 19:21
  • @janos I'm curious - what did that edit accomplish?
    – muru
    Jan 9, 2017 at 6:48

2 Answers 2

1

You can also use "sudo -i" to login as root.

0
1

sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner

It seems the file /usr/lib/sudo/sudoers.so has the wrong permissions. It should be writable only by the owner, but apparently that's not the case. Confirm the permission bits shown by:

ls -l /usr/lib/sudo/sudoers.so

The integrity of the sudoers.so library is critical for the security of the system, that's why all sudo commands are automatically rejected, as a safety feature.

To fix the permissions you would have to become root, one way or another. Do you have a root password? Probably not. Start the system in rescue mode, and boot a live CD and mount your disk, fix the permissions and reboot.

Perhaps even more important is to find out how this happened. Have you been hacked?

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .