#!/bin/sh BASE=/a # set the default router FILE=$BASE/etc/defaultrouter [ ! -f $FILE ] && cat <>$FILE 148.88.8.6 EOT # Netmasks FILE=$BASE/etc/netmasks cp $FILE $FILE.`date +%Y%m%d` cat <$FILE # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. # # network-number netmask # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # # 128.32.0.0 255.255.255.0 # 148.88.0.0 255.255.0.0 10.8.0.0 255.248.0.0 10.20.0.0 255.255.0.0 10.22.3.0 255.255.255.0 10.32.0.0 255.255.0.0 10.33.0.0 255.255.0.0 10.34.0.0 255.255.0.0 10.36.0.0 255.255.0.0 10.38.0.0 255.255.0.0 EOT # should do $BASE/sbin/bash # System File FILE=$BASE/etc/system if [ -f $FILE ] then if grep -c "noexec_user_stack" $FILE >/dev/null then false else cp $FILE $FILE.`date +%Y%m%d` cat <>$FILE * Foil certain classes of bug exploits set noexec_user_stack = 1 * Log attempted exploits set noexec_user_stack_log = 1 EOT fi fi # should do $BASE/etc/passwd for root shell # configure xntpd FILE=$BASE/etc/inet/ntp.conf if [ ! -f $FILE ] then cat <$FILE # Config file for xntpd # 22/01/01 - steveb updated this for 4-way peering server ntp0.lancs.ac.uk server ntp1.lancs.ac.uk server ntp2.lancs.ac.uk server ntp3.lancs.ac.uk driftfile /var/ntp/ntp.drift EOT fi # Disable power management touch /a/noautoshutdown