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

Diff for /src/etc/Attic/security between version 1.8 and 1.9

version 1.8, 1996/09/15 20:29:41 version 1.9, 1996/09/16 19:40:27
Line 44 
Line 44 
                 printf("Login %s has no password.\n", $1);                  printf("Login %s has no password.\n", $1);
         if (length($2) != 13 && ($10 ~ /.*sh$/ || $10 == ""))          if (length($2) != 13 && ($10 ~ /.*sh$/ || $10 == ""))
                 printf("Login %s is off but still has a valid shell.\n", $1);                  printf("Login %s is off but still has a valid shell.\n", $1);
         if ($3 == 0 && $1 != "root" && $1 != "toor")          if ($3 == 0 && $1 != "root")
                 printf("Login %s has a user id of 0.\n", $1);                  printf("Login %s has a user id of 0.\n", $1);
         if ($3 < 0)          if ($3 < 0)
                 printf("Login %s has a negative user id.\n", $1);                  printf("Login %s has a negative user id.\n", $1);
Line 62 
Line 62 
         column $OUTPUT          column $OUTPUT
 fi  fi
   
 awk -F: '$1 != "toor" { print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |  awk -F: '{ print $1 " " $3 }' $MP | sort -n +1 | tee $TMP1 |
 uniq -d -f 1 | awk '{ print $2 }' > $TMP2  uniq -d -f 1 | awk '{ print $2 }' > $TMP2
 if [ -s $TMP2 ] ; then  if [ -s $TMP2 ] ; then
         printf "\n$MP has duplicate user id's.\n"          printf "\n$MP has duplicate user id's.\n"
Line 242 
Line 242 
         fi          fi
 done  done
   
 # Check for special users with .rhosts/.shosts files.  Only root and  # Check for special users with .rhosts/.shosts files.  Only root should
 # toor should have .rhosts/.shosts files.  Also, .rhosts/.shosts files  # have .rhosts/.shosts files.  Also, .rhosts/.shosts files
 # should not have plus signs.  # should not have plus signs.
 awk -F: '$1 != "root" && $1 != "toor" && $1 !~ /^[+-].*$/ && \  awk -F: '$1 != "root" && $1 !~ /^[+-].*$/ && \
         ($3 < 100 || $1 == "ftp" || $1 == "uucp") \          ($3 < 100 || $1 == "ftp" || $1 == "uucp") \
                 { print $1 " " $6 }' /etc/passwd |                  { print $1 " " $6 }' /etc/passwd |
 while read uid homedir; do  while read uid homedir; do

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9