Changeset 113

Show
Ignore:
Timestamp:
11/21/07 08:45:36 (1 year ago)
Author:
slawrence
Message:

Added/fixed STIG scripts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL5/scripts/stig-fix/cat1/gen000560.sh

    r112 r113  
    1212        if [ -z `echo $USERINFO | cut -d: -f2` ] 
    1313        then 
    14                 usermod -L -s /dev/null `echo $USERINFO | cut -d: -f1`  
     14                /usr/sbin/usermod -L -s /dev/null `echo $USERINFO | cut -d: -f1`  
    1515        fi 
    1616done; 
  • trunk/RHEL5/scripts/stig-fix/cat1/gen005000.sh

    r110 r113  
    66echo 'Patching GEN005000: Set shell of ftp user' 
    77echo '===================================================' 
    8 usermod -s /dev/null ftp 
     8/usr/sbin/usermod -s /dev/null ftp 
  • trunk/RHEL5/scripts/stig-fix/cat2/gen002640.sh

    r110 r113  
    1212     NAMEID=`id -u $NAME` 
    1313     if [ $NAMEID -lt 500 -a $NAME != 'root' ]; then 
    14          usermod -L -s /dev/null $NAME 
     14         /usr/sbin/usermod -L -s /dev/null $NAME 
    1515     fi 
    1616done 
  • trunk/RHEL5/scripts/stig-fix/cat2/gen003320.sh

    r106 r113  
    11#!/bin/sh 
    22 
    3 # Default system accounts are not to be run as at jobs. 
     3## (GEN003320: CAT II) (Previously – G213) The SA will ensure default system  
     4## accounts (with the possible exception of root) are not listed in the  
     5## at.allow file. If there is only an at.deny file, the default accounts  
     6## (with the possible exception of root) will be listed there. 
    47echo '===================================================' 
    5 echo ' Patching GEN003320: Disallow system account access'  
    6 echo '                     as at jobs.' 
     8echo ' Patching GEN003320: Only root may be in at.allow'  
    79echo '===================================================' 
    8 echo "daemon 
    9 bin 
    10 adm 
    11 uucp 
    12 lp 
    13 news 
    14 nobody 
    15 ftp 
    16 sshd 
    17 smmsp" > /etc/at.deny 
     10echo "root" > /etc/at.allow 
  • trunk/RHEL5/scripts/stig-fix/run-fixes.sh

    r106 r113  
    77echo 'Patching Cat III Secuity issues' 
    88for i in `ls cat3`; do cat3/$i; done; 
     9echo 'Patching Cat IV Secuity issues' 
     10for i in `ls cat4`; do cat4/$i; done; 
     11 
    912echo "run-fixes.sh completed" >> /root/stig-fixes-run.txt