Hi guys,
I really have a big problem here. I was trying to create a script and that what it did was copy a file, cd to the destination, chown and chmod them to 644 for files and 755 for dirs recursively I think.
But I got a variable typo and it goes to "/" instead whacking all the files.
Gladly I have a single root su'ed. I tried others but it says operation not permitted.
What I need to do to restore permissions?
Now I'm on /bin. Looks like everything is messed up. By the way this is on a VM. (work VM).
TIA
EDIT: I was lucky I have mounted ssh filesystem and it stops on a file on my /home
So it means that /bin, /boot, /dev, /etc, /home were now owned by me. "su -" will now issue:
su: Authentication failure
even if root password is correct.