Ran chmod 764 /usr folder

I ran sudo chmod 764 /usr and then my laptop rebooted, now I can't open Ubuntu login screen anymore. Help me please.

Edit:

I solved it! Boot in recovering mode and then open root console. I wrote chmod 755 /usr and then rebooted.

1

1 Answer

Try booting from an usb Ubuntu, mount the partition and chmod /usr to 755 for a start. Then, you will need to figure out case by case once something fails.

Good luck.

Extra info: in an almost fresh 20.04 desktop install (on a virtual machine I have)

find /usr | wc -l

gives about 177K files :-)

If you put in a bash shell file...

find /usr | while read aa; do echo $aa; stat -c "%a %n" $aa; done

you will get a list of current file perms, and you could redirect that to a file as a safe measure.

regards, JP.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like