Solaris 9 Hardening Script Problem
From: Anthony Gunia (aggunia_at_comcast.net)
Date: 05/29/05
- Previous message: Alex Stade: "vdbench"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <sunmanagers@sunmanagers.org> Date: Sat, 28 May 2005 22:02:58 -0500
Hello,
I am working on a script to harden a Solaris 9 installation based on the CIS
Solaris Benchmark v1.3.0. On page 7 of the benchmark, there is a section
called "Minimize inetd network services", that I can't seem to get working.
The problem is with the awk portion in the section below:
cd /etc/inet
for svc in time echo discard daytime chargen fs dtspc \
exec comsat talk finger uucp name xaudio \
netstat ufsd rexd systat sun-dr uuidgen \
rexd systat sun-dr uuidgen \
krb5_prop; do
awk "(\$1 == \"$svc\") { \$1 = \"#\" \$1 }; {print}" \
inetd.conf >inetd.conf.new
done
When I look at the inetd.conf.new file it creates, the services are listed,
but not commented out. Could someone who's good in awk please shed some
light on getting this to work? I'm running this on a Solaris 9 SPARC
installation. Thanks!
Anthony
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Previous message: Alex Stade: "vdbench"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|