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?
ll /usr/lib/sudo/
? Also about what file is that image?sudo passwd
as root and change it's password to something you know. That way you can just do asu
to login as root.