#!/bin/sh ############################################################################## # $Id: disable_inetd_services,v 1.1 2002/03/21 19:04:25 root Exp $ ############################################################################## # Comment out all services in inetd.conf ############################################################################## # $Log: disable_inetd_services,v $ # Revision 1.1 2002/03/21 19:04:25 root # Initial revision # ############################################################################## echo echo "Start of $0" echo ' $Id: disable_inetd_services,v 1.1 2002/03/21 19:04:25 root Exp $' BASE=/a echo " Disabling inetd services" # Comment out everything in inetd.conf. echo " Commenting out all services in /etc/inet/inetd.conf" mv $BASE/etc/inet/inetd.conf $BASE/etc/inet/inetd.conf.orig sed '/^[^#]/s/^/#/' $BASE/etc/inet/inetd.conf.orig > $BASE/etc/inet/inetd.conf chmod 644 $BASE/etc/inet/inetd.conf echo "End of $0"