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

Diff for /src/etc/Attic/security between version 1.74 and 1.75

version 1.74, 2005/12/06 20:18:56 version 1.75, 2006/03/21 19:59:28
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                  if egrep -aq '[[:space:]]*umask[[:space:]]' $i ; then
                         umaskset=yes                          umaskset=yes
                 fi                  fi
                 awk '{                  awk '{
Line 188 
Line 188 
 list="/etc/profile ${rhome}/.profile"  list="/etc/profile ${rhome}/.profile"
 for i in $list; do  for i in $list; do
         if [ -s $i ] ; then          if [ -s $i ] ; then
                 if egrep umask $i > /dev/null ; then                  if egrep -a umask $i > /dev/null ; then
                         umaskset=yes                          umaskset=yes
                 fi                  fi
                 egrep umask $i |                  egrep -a umask $i |
                 awk '$2 % 100 < 20 \                  awk '$2 % 100 < 20 \
                         { print "Root umask is group writable" } \                          { print "Root umask is group writable" } \
                      $2 % 10 < 2 \                       $2 % 10 < 2 \
Line 243 
Line 243 
 (cd $rhome  (cd $rhome
  for i in $list; do   for i in $list; do
         if [ -s $i ] ; then          if [ -s $i ] ; then
                 egrep umask $i |                  egrep -a umask $i |
                 awk '$2 % 100 < 20 \                  awk '$2 % 100 < 20 \
                         { print "Root umask is group writable" } \                          { print "Root umask is group writable" } \
                      $2 % 10 < 2 \                       $2 % 10 < 2 \
                         { print "Root umask is other writable" }' >> $OUTPUT                          { print "Root umask is other writable" }' >> $OUTPUT
                 if egrep PATH= $i > /dev/null ; then                  if egrep -a PATH= $i > /dev/null ; then
                         SAVE_PATH=$PATH                          SAVE_PATH=$PATH
                         unset PATH                          unset PATH
                         /bin/ksh << end-of-sh > /dev/null 2>&1                          /bin/ksh << end-of-sh > /dev/null 2>&1

Legend:
Removed from v.1.74  
changed lines
  Added in v.1.75