Return root ownership to /usr [duplicate]


Answer: 1

17 hours ago

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?

Answer: 2

36 hours ago

You have to boot in maintenance (recovery) mode or with live CD / USB and mount the root volume.

Added by: Evangeline Walter

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9