I stupidly ran this command in Ubuntu 18.04:
sudo chown -R $USER:$USER /usr
Now I want to undo this but when I run:
chown -R root:root /usr
I get this error:
operation not permitted
And I can't run a sudo command and gives me this error:
/usr/bin/sudo must be owned by uid 0 and setuid bit set
How can I fix this?
[UID,GID]
pairs on my/usr
. – waltinator May 16 '19 at 13:33/usr/bin/at
as the exception (daemon:daemon). But I realize I simply assumed that the whole of/usr
was owned by root. – Jos May 16 '19 at 14:44