去掉solaris8中的不安全服务,简单方法!

类别:软件工程 点击:0 评论:0 推荐:

日期:2004/08/07  作者:zcatlinux  来源:zclinux

以下是关闭solaris8不安全服务的简单方法,其实就是让系统启动的时候不在引导这些文件启动即可!

#!/bin/bash
mkdir /backup
mkdir /backup/etc/
mkdir /backup/etc/init.d
mkdir /backup/etc/rc0.d
mkdir /backup/etc/rc1.d
mkdir /backup/etc/rc2.d
mkdir /backup/etc/rc3.d
mkdir /backup/etc/rcS.d

cp /etc/inetd.conf /backup/etc
mv /etc/init.d/IIim /backup/etc/init.d
mv /etc/init.d/init.dmi /backup/etc/init.d
mv /etc/init.d/init.wbem /backup/etc/init.d
mv /etc/init.d/nfs.client /backup/etc/init.d
mv /etc/init.d/sendmail /backup/etc/init.d
mv /etc/init.d/dtlogin /backup/etc/init.d
mv /etc/init.d/init.snmpdx /backup/etc/init.d
mv /etc/init.d/lp /backup/etc/init.d
mv /etc/init.d/rpc /backup/etc/init.d
mv /etc/init.d/webstart /backup/etc/init.d

mv /etc/rc0.d/K07dmi /backup/etc/rc0.d
mv /etc/rc0.d/K10dtlogin /backup/etc/rc0.d
mv /etc/rc0.d/K36sendmail /backup/etc/rc0.d
mv /etc/rc0.d/K39lp /backup/etc/rc0.d
mv /etc/rc0.d/K41rpc /backup/etc/rc0.d
mv /etc/rc0.d/K07snmpdx /backup/etc/rc0.d
mv /etc/rc0.d/K34IIim /backup/etc/rc0.d
mv /etc/rc0.d/K36wbem /backup/etc/rc0.d
mv /etc/rc0.d/K41nfs.client /backup/etc/rc0.d

mv /etc/rc1.d/K07dmi /backup/etc/rc1.d
mv /etc/rc1.d/K10dtlogin /backup/etc/rc1.d
mv /etc/rc1.d/K36sendmail /backup/etc/rc1.d
mv /etc/rc1.d/K39lp /backup/etc/rc1.d
mv /etc/rc1.d/K07snmpdx /backup/etc/rc1.d
mv /etc/rc1.d/K34IIim /backup/etc/rc1.d
mv /etc/rc1.d/K36wbem /backup/etc/rc1.d
mv /etc/rc1.d/K41rpc /backup/etc/rc1.d

mv /etc/rc2.d/K07dmi /backup/etc/rc2.d
mv /etc/rc2.d/S71rpc /backup/etc/rc2.d
mv /etc/rc2.d/S80lp /backup/etc/rc2.d
mv /etc/rc2.d/S90wbem /backup/etc/rc2.d
mv /etc/rc2.d/S99dtlogin /backup/etc/rc2.d
mv /etc/rc2.d/K07snmpdx /backup/etc/rc2.d
mv /etc/rc2.d/S73nfs.client /backup/etc/rc2.d
mv /etc/rc2.d/S88sendmail /backup/etc/rc2.d
mv /etc/rc2.d/S95IIim /backup/etc/rc2.d

mv /etc/rc3.d/S76snmpdx /backup/etc/rc3.d
mv /etc/rc3.d/S77dmi /backup/etc/rc3.d

mv /etc/rcS.d/K07dmi /backup/etc/rcS.d
mv /etc/rcS.d/K10dtlogin /backup/etc/rcS.d
mv /etc/rcS.d/K36sendmail /backup/etc/rcS.d
mv /etc/rcS.d/K39lp /backup/etc/rcS.d
mv /etc/rcS.d/K07snmpdx /backup/etc/rcS.d
mv /etc/rcS.d/K34IIim /backup/etc/rcS.d
mv /etc/rcS.d/K36wbem /backup/etc/rcS.d
mv /etc/rcS.d/K41rpc /backup/etc/rcS.d

本文地址:http://com.8s8s.com/it/it36579.htm