3

I executed sudo chmod -rwx /

To my surprise, all the icons on the dock vanished and all the commands (from man to sudo) are now unrecognised or not found.

The system had only one user.

We shut down the system and tried to login via tty2. The screen runs on a loop.

We are not able to see the normal login screen when We tried boot it up either.

Is there anything that we could do?

Zanna
  • 72,312
cantaloupeMan
  • 59
  • 1
  • 1
  • 2

1 Answers1

3

You'll have to boot a Live System, mount your system drive and fix it from there.

Step 1: Find an Live medium (USB stick or DVD) you can insert in your system.

Step 2: Boot your system from the Live medium.

Step 3: Open a terminal

Step 4: Find the device name of your damaged root file system (for example using sudo fdisk -l), for example /dev/sda1.

Step 5: Mount the damaged root file system on /mnt with the command

sudo mount /dev/sda1 /mnt

Step 6: Fix the damage with the command

sudo chmod 755 /mnt

Step 7: Unmount the file system again with

sudo umount /mnt

Step 8: Reboot back into your installation

Zanna
  • 72,312
Tilman
  • 3,769