I am facing an issue when I am installing python packages:
The error is:
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
The file has the wrong permissions, it should ONLY be writable by the owner, and its currently not.
To confirm that run:
ls -l /usr/lib/sudo/sudoers.so
When the permissions are correct, that should print '-rw-r--r--':
-rw-r--r-- 1 root root 316768 Jul 4 2017 /usr/lib/sudo/sudoers.so
To fix the issue (as long as you are root) run:
sudo chmod 644 /usr/lib/sudo/sudoers.so