SUMMARY: Solaris 9 Hardening Script Problem

From: Anthony Gunia <aggunia_at_comcast.net>
Date: Mon May 30 2005 - 10:21:07 EDT
Many thanks to Michael DeSimone, James Noyes, Angelos Kanellopoulos, Simon
Burr, and Nathan Dietsch.  James pointed out that I was missing the 'mv
inetd.conf.new inetd.conf'  line in the code:

awk "(\$1 == \"$svc\") { \$1 = \"#\" \$1 }; {print}" \
inetd.conf >inetd.conf.new
mv inetd.conf.new inetd.conf
done

Also, it was pointed out by Simon that I could use sed for much the same
thing as follows:

sed "s/^\\(${svc}[     ].*\\)/#\1/" inetd.conf > inetd.conf.new

Michael mentioned that I could just comment out everything using vi as
follows:

:%s/^/#/g
wq!

Nathan and Angelos mentioned using JASS, which is not an option for me at
this time.  Thanks again, and have a great Memorial Day!

Anthony
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon May 30 10:21:37 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:47 EST