#!/bin/sh
chmod 711 /bin
chmod 711 /boot
chmod 711 /dev
chmod 711 /home
chmod 711 /lib
chmod 711 /mnt
chmod 711 /sbin
chmod 711 /usr
chmod 711 /var
chmod 711 /etc
chmod 711 /usr/bin
chmod 711 /usr/sbin
chmod 711 /usr/local
chmod 711 /usr/share
chmod 711 /usr/local/apache
chmod 711 /usr/local/mysql
chmod 711 /usr/local/apache/conf
chmod 600 /usr/local/apache/conf/*
chmod 711 /usr/local/mysql/data
chmod 711 /etc/mail
chmod 711 /etc/proftpd
chmod 711 /etc/rc.d
chmod 700 /usr/bin/finger
chmod 700 /usr/bin/nslookup
chmod 700 /usr/bin/suidperl
chmod 700 /usr/bin/whereis
chmod 700 /usr/bin/sperl5.00503
chmod 700 /usr/bin/pstree
chmod 700 /usr/bin/rlog
chmod 700 /usr/bin/rlogin
chmod 700 /usr/bin/which
chmod 700 /usr/bin/who
chmod 700 /usr/bin/w
chmod 700 /usr/bin/top
chmod 700 /usr/bin/find
chmod 700 /usr/bin/free
chmod 700 /usr/bin/df
chmod 4750 /bin/su
chmod 700 /usr/bin/w
chmod 700 /usr/sbin/dump
chmod 700 /usr/bin/mc
rm -fr /tmp
ln -s /var/tmp /tmp
echo > .rhsots
chmod 644 /tmp/.rhosts