SUMMARY: Solaris 9 Hardening Script Problem

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

  • Next message: PSI: "[UPDATE] Can I install solaris 10 on a SPARCstation20 ?"
    To: <sunmanagers@sunmanagers.org>
    Date: Mon, 30 May 2005 09:21:07 -0500
    
    

    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


  • Next message: PSI: "[UPDATE] Can I install solaris 10 on a SPARCstation20 ?"