Solaris 9 Hardening Script Problem

From: Anthony Gunia (aggunia_at_comcast.net)
Date: 05/29/05

  • Next message: Peter Junker: "Displaying Solaris SMC 2.1 on a Linux Box"
    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


  • Next message: Peter Junker: "Displaying Solaris SMC 2.1 on a Linux Box"

    Relevant Pages

    • Solaris 9 install server
      ... Executing begin script "install_begin"... ... installation). ... > Solaris 8 setup as an nstall server. ... pseudo-device: devinfo0 ...
      (SunManagers)
    • Problems
      ... I had a problem installing linux on a ultra5 with solaris 2.7 and solaris 2.8 ... Solaris I tried to make a boot floppy for linux but ... The Debian linux installation has overwritten my boot block for solaris. ...
      (Debian-User)
    • Re: sunmanagers Digest, Vol 8, Issue 7 ... Slow Boot Up
      ... Just checking if we have the same cause for slow boot up? ... Solaris 8 Problem After Patches Installed ... Using PuTTY to send Control-? ... After installation of Solaris 8 on E250 I had to install Raptor GFX Open ...
      (SunManagers)
    • Re: Is Sun sincere about encouraging new Solaris users?
      ... It might help to review my recent experiences with Ubuntu (starting ... installer CD and did the actual installation. ... Sun does not seem to offer any comparable path into Solaris. ...
      (comp.unix.solaris)
    • Re: Is Sun sincere about encouraging new Solaris users?
      ... DVD drives cost $40 or less. ... Sun to spend money on improving the installation of Solaris on old ...
      (comp.unix.solaris)