Remove the unsafe service in Solaris8, simple way!

zhaozj2021-02-16  140

Date: 2004/08/07 Author: zcatlinux Source: zclinux

The following is a simple way to close the Solaris8 unsafe service, in fact, it is not to boot these files when you start it! #! / bin / bashmkdir / backupmkdir / backup / etc / mkdir / backup/etc/init.dmkdir /backup/etc/rc0.dmkdir /backup/tc/rc1.dmkdir / backup/tc/rc2.dmkdir / backup / etc /Rc3.dmkdir / backup/etc/rcs.d

Cp /etc/inetd.conf / backup / etcmv /etc/init.d/iiim/etc/init.d/init.dmi / backup/etc/init.dmv / etc / init. D / init.wbem /backup/etc/init.dmv /etc/init.d/nfs.client /backup/init.dmv /etc/init.d/sendmail /backup/etc/init.dmv / etc / Init.d / dtlogin /backup/etc/init.dmv /etc/ininit.d/init.snmpdx /backup/init.dmv /etc/init.d/lp /backup/init.dmv / etc / Init.d / rpc /backup/etc/init.dmv /etc/ininit.d/webstart / backup/etc/init.d

mv /etc/rc0.d/k07dmi / backup/tc/rc0.dmv /etc/rc0.d/k10dlogin /backup/rc/rc0.dmv /etc/rc0.d/k36sendmail /backup/tc/rc0.dmv / ETC / RC0.D / K39LP /BACKUP/RC /RC0.DMV / Etc/rc0.d/k41rpc /backup/rc/rc0.dmv /etc/rc0.d/k07snmpdx /backup/tc/rc0.dmv / etc / Rc0.d / k34iiim/backup/tc/rc0.dmv /etc/rc0.d/k36wbem /backup/tc/rc0.dmv /etc/rc0.d/k41nfs.client / backup/etc/rc0.d

mv /etc/rc1.d/k07dmi / backup/rc/rc1.dmv /etc/rc1.d/k10dlogin /backup/rc/rc1.dmv /etc/rc1.d/k36sendmail /backup/etc/rc1.dmv / ETC / RC1.D / K39LP /BACKUP/RC/RC1.DMV /ETC/RC1.D/k07snmpdx /backup/rc/rc1.dmv /etc/rc1.d/k34iiim / backup/etc/rc1.dmv / etc / Rc1.d / k36wbem /backup/tc/rc1.dmv /etc/rc1.d/k41rpc/backup/etc/rc1.d

mv /etc/rc2.d/k07dmi /backup/rc/rc2.dmv /etc/rc2.d/s71rpc /backup/tc/rc2.dmv /etc/rc2.d/s80lp /backup/etc/rc2.dmv / ETC / RC2.D / S90wbem /backup/tc/rc2.dmv /etc/rc2.d/s99dtlogin / backup/rc/rc2.dmv /etc/rc2.d/k07snmpdx /backup/tc/rc2.dmv / etc / Rc2.d / s73nfs.client / backup/rc2.dmv /etc/rc2.d/s87sendmail /backup/tc/rc2.dmv /etc/rc2.d/rc2.dmv / etc / Rc3.d / s76snmpdx /backup/tc/rc3.dmv /etc/rc3.d/s77dmi / backup/etc/rc3.d

mv /etc/rcs.d/k07dmi /backup/tc/rcs.dmv /etc/rcs.d/k10dtlogin /backup/tc/rcs.dmv /etc/rcs.d/k36sendmail /backup/etc/rcs.dmv / ETC / RCS.D / K39LP /BACKUP/TC/rcs.dmv /etc/rcs.d/k07snmpdx /backup/rc/rcs.dmv /etc/rcs.d/k34iiim / backup/etc/rcs.dmv / etc / RCS.D / K36WBEM /BACKUP/TC/RCs.dmv /etc/rcs.d/k41rpc/backup/etc/rcs.d

转载请注明原文地址:https://www.9cbs.com/read-8281.html

New Post(0)