Skip to content

Commit

Permalink
Turn off more services until next 'first boot'
Browse files Browse the repository at this point in the history
  • Loading branch information
casr committed Dec 18, 2013
1 parent 4ec6a05 commit 6bc36c6
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ EOM

echo 'UseDNS no' >> /etc/ssh/sshd_config

chkconfig auditd off
chkconfig crond off
chkconfig sshd off
chkconfig --level 2345 auditd off
chkconfig --level 2345 crond off
chkconfig --level 345 netfs off
chkconfig --level 345 nfslock off
chkconfig --level 2345 rpcbind off
chkconfig --level 345 rpcgssd off
chkconfig --level 345 rpcidmapd off
chkconfig --level 2345 sshd off

# Just keep US English.
find /usr/share/locale -mindepth 1 -maxdepth 1 -type d \
Expand Down Expand Up @@ -198,9 +203,14 @@ rm -f /var/log/dmesg.old /var/log/anaconda.ifcfg.log \\
echo -n | tee /var/log/dmesg /var/log/maillog /var/log/lastlog \\
/var/log/secure /var/log/yum.log >/var/log/cron

chkconfig auditd on
chkconfig crond on
chkconfig sshd on
chkconfig --level 2345 auditd on
chkconfig --level 2345 crond on
chkconfig --level 345 netfs on
chkconfig --level 345 nfslock on
chkconfig --level 2345 rpcbind on
chkconfig --level 345 rpcgssd on
chkconfig --level 345 rpcidmapd on
chkconfig --level 2345 sshd on

rm -rf /tmp/* /tmp/.[^.]+
dd if=/dev/zero of=/tmp/clean || rm -f /tmp/clean
Expand Down

0 comments on commit 6bc36c6

Please sign in to comment.