Question : Accidentally "rm -r /etc".  How to recover?

I have a tar of /etc from an identically configured host, but I can no longer establish new ssh sessions.  I am still logged into the original shell, though.  What is my best option at this point?

I don't have any user data in /etc, but I have a lot of stuff I need outside of that directory that I can't get to unless I find a fix.

Answer : Accidentally "rm -r /etc".  How to recover?

In fact the real problem here is you've lost ld.so.config and ld.so.cache without it no program will be able to link to dynamic libraries. Then you've lost passwd and group files so no program could determine what are it's permissions.  Then your services file to determine what the services file so that programs could determine what port to bind, your nssconfig to determine how to resolve a name and hosts file to determine what is the hosts name, authentication libraries,  resolv.conf etc. which will keep a bunch of programs from operating.

As I've told earlier it is impossible to restore this system without physical access. to system and installation media.
Random Solutions  
 
programming4us programming4us