I accidentally ran sudo chown -R root:root /usr/ on my ubuntu machine (while playing around with sd-card of my Raspberry Pi. I actually wanted to type sudo chown -R root:root usr/ without slash.)
Now I get this error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set.
Is it possible to fix this?
EDIT:
I had the wrong command in my post before. I forgot the root:root. Although all files in /usr are owned by root I get the error message.
sudo chown -R root:root /usr/is not the source of your problem,/usr/bin/sudois owned by root anyway and permissions are not changed with this command. – mook765 Jan 09 '19 at 11:48setuid bitwas not set anymore and don't now why. And some stuff in/usr/has different groups then root. I set thesetuid bitforsudoin recovery mode and reinstalled everything and fixed some permissions (atchagessh-agent) manually. – jake Jan 09 '19 at 11:57