[BACK]Return to security CVS log [TXT][DIR] Up to [local] / src / etc

Diff for /src/etc/Attic/security between version 1.62 and 1.63

version 1.62, 2003/07/01 22:12:50 version 1.63, 2003/07/03 23:05:42
Line 136 
Line 136 
 list="/etc/csh.cshrc /etc/csh.login ${rhome}/.cshrc ${rhome}/.login"  list="/etc/csh.cshrc /etc/csh.login ${rhome}/.cshrc ${rhome}/.login"
 for i in $list ; do  for i in $list ; do
         if [ -s $i ] ; then          if [ -s $i ] ; then
                   if egrep -q '[[:space:]]*umask[[:space:]]' $i ; then
                           umaskset=yes
                   fi
                 awk '{                  awk '{
                     if ($1 == "umask") {                      if ($1 == "umask") {
                          if ($2 % 100 / 10 ~ /^[0145]/)                           if ($2 % 100 / 10 ~ /^[0145]/)
Line 143 
Line 146 
                          if ($2 % 10 ~ /^[0145]/)                           if ($2 % 10 ~ /^[0145]/)
                             print "Root umask is other writable";                              print "Root umask is other writable";
                     }                      }
                 }' < $i > $TMP3                  }' < $i >> $OUTPUT
                 if [ -s $TMP3 ]; then  
                         umaskset=yes  
                         cat $TMP3 >> $OUTPUT  
                 fi  
                 SAVE_PATH=$PATH                  SAVE_PATH=$PATH
                 unset PATH                  unset PATH
                 /bin/csh -f -s << end-of-csh > /dev/null 2>&1                  /bin/csh -f -s << end-of-csh > /dev/null 2>&1

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63