chkconfig

#!/bin/bash
chkconfig --level 35 apmd off
chkconfig --level 35 netfs off
chkconfig --level 35 yppasswdd off
chkconfig --level 35 ypserv off
chkconfig --level 35 dhcpd off
chkconfig --level 35 portmap off
chkconfig --level 35 lpd off
chkconfig --level 35 nfs off
chkconfig --level 35 sendmail off
chkconfig --level 35 snmpd off
chkconfig --level 35 rstatd off
chkconfig --level 35 atd off
chkconfig --level 35 yum-updatesd off
killall rpc.statd
killall cupsd

userdel adm
userdel lp
userdel sync
userdel shutdown
userdel halt
userdel mail
userdel news
userdel uucp
userdel operator
userdel games
userdel ftp
groupdel adm
groupdel lp
groupdel mail
groupdel news
groupdel uucp
groupdel games
 

你可能感兴趣的:(职场,chkconfig,休闲)