for i in \
rpcgssd rawdevices readahead cups portsentry irqbalance nfslock autofs canna isdn iiim portmap \
haldaemon rpcidmapd readahead_early iptables kudzu microcode_ctl messagebus ntpd gpm filelimits rpcsvcgssd \
arptables_jf cups-config-daemon;
do
chkconfig --level 123456 $i off
/etc/init.d/$i stop
done;


/scripts/secureit
touch /etc/interchangedisable
touch /etc/melangedisable
touch /etc/entropychatdisable
/scripts/compilers off
/scripts/securetmp --auto
/scripts/securetmp --install
rm -rf /var/tmp/
ln -s /tmp/ /var/
umount /dev/shm
mount /dev/shm
/etc/init.d/cpanel restart


echo disabling tools..
chmod 750 /usr/bin/curl
chmod 750 /usr/kerberos/bin/ftp
chmod 750 /usr/bin/elinks
chmod 750 /usr/bin/links
chmod 750 /usr/bin/lynx
chmod 750 /usr/bin/rcp
chmod 750 /usr/bin/wget
chmod 750 /usr/bin/scp

