I knocked this together today but it is not listing all files in the while true FILE loop. I tried two variations, one with the ultimate endgame matching files which are go+w and one without. The idea is to check the files in each users home directory to ensure nothing is go+r.
lsuser -a home ALL |cut -f2 -d= | while read HOMEDIR; do [[ -d $HOMEDIR ]] && ls -a $HOMEDIR | grep -Ev "^.$|^..$" | while read FILE; do [[ -f $FILE ]] && ls -l "$HOMED
IR/$FILE"; done; done
#lsuser -a home ALL |cut -f2 -d= | while read HOMEDIR; do [[ -d $HOMEDIR ]] && ls -a $HOMEDIR | grep -Ev "^.$|^..$" | while read FILE; do [[ -f $FILE ]] && ls -l "$HOME
DIR/$FILE" |awk '{print $1 , $9}' |egrep '^-....w....|^-.......w.'; done; done
Any help is greatly appreciated.
lsuser -a home ALL |cut -f2 -d= | while read HOMEDIR; do [[ -d $HOMEDIR ]] && ls -a $HOMEDIR | grep -Ev "^.$|^..$" | while read FILE; do [[ -f $FILE ]] && ls -l "$HOMED
IR/$FILE"; done; done
#lsuser -a home ALL |cut -f2 -d= | while read HOMEDIR; do [[ -d $HOMEDIR ]] && ls -a $HOMEDIR | grep -Ev "^.$|^..$" | while read FILE; do [[ -f $FILE ]] && ls -l "$HOME
DIR/$FILE" |awk '{print $1 , $9}' |egrep '^-....w....|^-.......w.'; done; done
Any help is greatly appreciated.