I was messing around with permissions on my pi today and I managed to accidentally change the permissions on /usr/lib/sudo/sudoers.so to anyone can view anyone can write and nobody can execute. After this, it throws this error when you prefix anything with sudo:
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
I've tried changing it back but the permission is denied. I assume the problem is that I'm not editing the permissions as root and therefore I think I have a circular problem. I need root so I can fix my root. does anyone have a solution to this? My only idea is to take out the micro SD card and throw it into my main PC while it's booted off of a Debian Live CD and I have tried it though I stopped after Debian threw a fit with my Nvidia graphics. I'm here for any other solutions that don't involve taking my main PC apart temporarily as this seems to have little to no impact on my Pi's main function as a personal VPN server though it does make it impossible to start my FTP server. Thank you for your time.