Deleted /etc on centos with whm. Howto recreate passwd?
Hi, someone deleted /etc folder on server with WHM and about 100 users.
Well, I can copy the /etc from exactly the same server and change there some settings like ip address, etc. But the main problem is the passwd and shadow files. Is there some way howto recreate it from home folder?
In the home folder are still all files, the dir name under /home/* is name of user and there is also still info about uid, gid. Is there some way (some script) howto recreate the passwd file from this info and recet password to some default? Thank You
|