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

janos
  • 4,888
gladiss
  • 11
  • 1
  • 2

2 Answers2

1

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

mango
  • 286
  • 1
  • 4
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?

janos
  • 4,888