Ubuntu – I am getting access denied in Ubuntu terminal after sudo chmod 754 .. from /home. Do I have a brick now

permissionsrootUbuntu

In effect, I changed the permissions of / to 754

The machine is 14.04

I cannot type any shell command as it says permission denied.
-bash: /bin/ls: Permission denied

I can't even use sudo to change the permissions on /
-bash: /usr/bin/sudo: Permission denied

Fortunately the machine is still running and I have a PUTTY terminal still open.

Do I have a quasi brick?

Best Answer

Regardless of what you try, you're going to have to create a bootable Ubuntu USB. Once you have the bootable USB, boot from it, and then you can either try to painstakingly change all of the permissions (do not recommend), or backup all of your data and reinstall the system.

Remember that you will have to locate your hard disk and mount it before doing anything. You can use fdisk -l for this or lsblk