# Script: sho_iaws_locscrperms # Where: in $ENGDIR/scripts where $ENGDIR=/apps/nns_com/eng # # Purpose: show permissions on /local/scratch/ideas directory levels for # all iaw### hosts in /etc/hosts. # Called by: iad_cleanuser.menu script # # Written by: B. Montandon 1Dec95 # Updated by: B. Montandon 8May97 better .rhosts handling # if test ! "sgia" = "`hostname`" # then # echo " # Login to 'sgia' !!! Much faster lists/removes. # " # exit # fi . $FEDIR/scripts/clearnns # set -x TEMPFILE="/local/scratch/hosts.temp" rm $TEMPFILE rm $HOME/temp.lis echo "\ ...................................................................... Show ownership-permissions for /local/scratch/ideas subdirectories on ALL iaw### client machines in 'ypcat hosts': from iad menu option 'cu sl' .....................`date`....................... " >> $HOME/temp.lis # ypcat hosts | grep iaw | cut -f3 -s | sort > $TEMPFILE ypcat hosts | grep iaw | awk '{print $3}' | sort > $TEMPFILE FILELIST=`cat $TEMPFILE` . $FEDIR/scripts/mak_rhosts ENGDIR=/apps/nns_com/eng for HOST in $FILELIST do echo " ................... $HOST ...................................... " rsh $HOST $ENGDIR/scripts/sho_iaws_locscrperms_1 # rsh $HOST ls -ld /local | tee -a $HOME/temp.lis # rsh $HOST ls -ld /local/scratch | tee -a $HOME/temp.lis # rsh $HOST ls -ld /local/scratch/ideas | tee -a $HOME/temp.lis done # . $FEDIR/scripts/mv_rhosts rm $TEMPFILE # set - . $FEDIR/scripts/shofil $HOME/temp.lis