version 1.62, 2003/07/01 22:12:50 |
version 1.63, 2003/07/03 23:05:42 |
|
|
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]/) |
|
|
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 |