What not to do: (based on personal experience on a fully deployed server... almost gave myself a heart attack)
Never ever touch directories inside the /home/virtfs folder. As nick has mentioned they "mounted?" from your own root files and whaever change you make you will be making to your root files. For example... rm -rf /home/virtfs/username (in an attempt to revoke the user's jailshell) will result in a server with no sshd and an empty /usr/sbin...
Now that you've done it... How to fix it:
If its a test server or a new server just order a restore... it will save you time. However, if you have customers on the server, this is what did it for me:
DO NOT RESTART!!! You restart and you lose ssh which means that restore is your only chance. rpmfind.net will be your friend for the next 5-10 hour. First fix Ssh.if you have a backup sshd... place it into /usr/sbin/. If you don't, recompile openssh and place the sshd in /usr/sbin.
Then do: rpm -V -a | grep missing.
It will show you some of the files that are missing. These files will usually be in /usr/sbin. Search for the path of each file at rpmfind.net and find the rpm thats right. You can do rm -q RPM to check which version was installed previously. After about 10 hours you should be through the list of missing files. You can now reboot and should have a fully working system...
cPanel.net Support Ticket Number:



LinkBack URL
About LinkBacks
)
Reply With Quote




