I accidentally changed the ownership of several files including system files in our Centos 7
server due to a syntax error. I was trying to change it for a particular folder, but missed the .
and ended up executing \
. Now I can't even remote login to the machine through Putty/Cygwin
. It says Connection disconnected
. Is the server hosed or is there a way to restore the default permissions to atleast system files
so I can login and go from there?
So far from my research I think I'm out of luck. Any tips?
Also, is there a way to copy files from the hard disk if it can't be restored like connecting it as slave in Windows machine?