发新话题
打印

[急]我的FreeBSD被黑,CSH被删,怎么办??

[急]我的FreeBSD被黑,CSH被删,怎么办??

我公司的网站使用freebsd,近日发现有人破解了webmin的超级用户密码,改动了些东西,并把CSH(主机root用户使用的shell)删除了。

现在我使用bash暂时代替,但是无法使用ps命令了!

由于我不懂如何修复或重装CSH,希望各位大虾能赐教一下!谢谢!

我的email:
simon9394@21cn.com
maxidea@maxidea.org

我的QQ:
3751031      

TOP

my way

If you have the distribution in cd, first make directory and then copy the the whole files in bin on your cd to the directory and then remove the information files(bin.inf, bin.mtree and install.sh) and then cat the bin files into one file and then tar it and then goto the bin directory and copy csh to the bin directory where csh is missing. Following is the spicific methods(do it as root):
1. mkdir t   
2. cp /cdrom/bin/* t
3. cd t
4. rm bin.inf bin.mtree install.sh
5. cat bin.[a-z]* >> 1.tgz
6. mkdir t
7. mv 1.tgz t
8. cd t
9. tar xzf 1.tgz
10. cd bin    11. cp csh /bin      

TOP

THANK YOU!

我目前找到一个比较方便的解决办法

我在自己的电脑上装了个freeBSD,把里面的/bin/ps和/bin/csh文件复制下来

再传上去掉失该文件的服务器上,并把属性改为555

问题就解决了。      

TOP

发新话题