Serious Linux Problemo

sudo does not work. I installed clamav and restarted my computer. Ever since I installed clam av. I have gotten this error when trying to sudo…

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Please help!

I’d suggest trying to boot into single user mode and remove the application. Then make sure sudo has the correct ownership. I’d also suggest reinstalling the OS if it’s been a fairly new install.

su to root and chown the path

chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo

this is probably ubuntu and you probably do not have root, so you would need to boot with a recovery utility and set root, then reboot and use su to login to root and chmod the permissions. AND after all that, you may just find that more damage was done than just borking the sudoers permissions, at which point you would be reinstalling anyways.

1 Like

I was able to fix it. Pop os offers recovery and refresh mode while keeping users profiles intact.

2 Likes

Wow, how did clamav managed to screw this up?

Install doas
:30yoadubs: :troll:

1 Like