#!/bin/bash source ../functions/main # Removing /tools from PATH: SED_REP='/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin' sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile echo "Creating /etc/host.conf" cat > /etc/host.conf << "EOF" # /etc/host.conf # # Lookup names via DNS first then fall back to /etc/hosts. order bind,hosts # Allow multiple addresses. multi on # Check for IP address spoofing. nospoof on EOF chmod 644 /etc/host.conf exit $?