=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/Attic/security,v retrieving revision 1.74 retrieving revision 1.75 diff -c -r1.74 -r1.75 *** src/etc/Attic/security 2005/12/06 20:18:56 1.74 --- src/etc/Attic/security 2006/03/21 19:59:28 1.75 *************** *** 1,6 **** #!/bin/sh - # ! # $OpenBSD: security,v 1.74 2005/12/06 20:18:56 pedro Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # --- 1,6 ---- #!/bin/sh - # ! # $OpenBSD: security,v 1.75 2006/03/21 19:59:28 david Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # *************** *** 136,142 **** list="/etc/csh.cshrc /etc/csh.login ${rhome}/.cshrc ${rhome}/.login" for i in $list ; do if [ -s $i ] ; then ! if egrep -q '[[:space:]]*umask[[:space:]]' $i ; then umaskset=yes fi awk '{ --- 136,142 ---- list="/etc/csh.cshrc /etc/csh.login ${rhome}/.cshrc ${rhome}/.login" for i in $list ; do if [ -s $i ] ; then ! if egrep -aq '[[:space:]]*umask[[:space:]]' $i ; then umaskset=yes fi awk '{ *************** *** 188,197 **** list="/etc/profile ${rhome}/.profile" for i in $list; do if [ -s $i ] ; then ! if egrep umask $i > /dev/null ; then umaskset=yes fi ! egrep umask $i | awk '$2 % 100 < 20 \ { print "Root umask is group writable" } \ $2 % 10 < 2 \ --- 188,197 ---- list="/etc/profile ${rhome}/.profile" for i in $list; do if [ -s $i ] ; then ! if egrep -a umask $i > /dev/null ; then umaskset=yes fi ! egrep -a umask $i | awk '$2 % 100 < 20 \ { print "Root umask is group writable" } \ $2 % 10 < 2 \ *************** *** 243,254 **** (cd $rhome for i in $list; do if [ -s $i ] ; then ! egrep umask $i | awk '$2 % 100 < 20 \ { print "Root umask is group writable" } \ $2 % 10 < 2 \ { print "Root umask is other writable" }' >> $OUTPUT ! if egrep PATH= $i > /dev/null ; then SAVE_PATH=$PATH unset PATH /bin/ksh << end-of-sh > /dev/null 2>&1 --- 243,254 ---- (cd $rhome for i in $list; do if [ -s $i ] ; then ! egrep -a umask $i | awk '$2 % 100 < 20 \ { print "Root umask is group writable" } \ $2 % 10 < 2 \ { print "Root umask is other writable" }' >> $OUTPUT ! if egrep -a PATH= $i > /dev/null ; then SAVE_PATH=$PATH unset PATH /bin/ksh << end-of-sh > /dev/null 2>&1