I have a CentOS 6.9 server.
/etc directory was under version control.
I accidentally ran 'git rm -R' on it. The server stopped working right away, my ssh session got lost.
I managed to have an ip console attached to the server, and booted from usb with a live linux, I ran
'git reset --hard'.
Now index/working dir is clean. I rebooted the system, but it still doesn't work. it responds to ping but i can't ssh to it still.
On the IP console, I can't even log in, after keying any user and it asks for user again.
From the recovery linux, I checked the errors in
/var/log/boot.log -- first error is regarding iptables-restore
error while loading shared libraries libip4tc.so.0 : cannot open shared object file: No such file or directory
Next is with rsyslog.d
CONFIG ERROR: could not interpret master config file '/etc/rsyslog.conf'
The file is clearly there if I check from the recovery live linux. I suspect some permissioning issue but no idea really.
Any help appreciated. Thanks.