I accidentally changed permissions to root directory on my system and now my system won't boot, I tried to fix packages from grub recovery and check file system but nothing. Here's the code I accidentally typed:
sudo chown -hR jmayerz:jmayerz /
After it executed, X11 shut down and system got stuck, so I rebooted and it won't boot again. I tried changing back permissions to system superuser from liveCD but how can I change it to the user on the machine itself not the liveCD? like this:
sudo mkdir /media/mount sudo mount /dev/sda1 /media/mount sudo chown -hR <user which originally owns root on the machine itself not liveCD, I think root user> /
How would that last line be executed?? which user is it?? and how is this executed from livCD?
When I try to use that method in recovery, it tells me that files are read-only, when I try to perform tasks that mount root in read-write it still doesn't do it.
mount -ro remount,rw
says that /etc/fstab reports that directories are already mounted.
chown -hR root /
says that files are in read only mode, after mounting read-write through doing something like fixing packages, it doesn't output anything.
chmod -hR jmayerz:jmayerz /home/jmayerz/
And now the liveCD won't boot, says general filesystem mount error.