1#! /bin/sh 2# 3# This script can be used to find suspicious files. These include 4# bad permissions (like owner-read only) 5# large (possible .nfs or linker trash) 6# 7# 8# Look for bad paths 9echo "Looking for symbolic links ..." 10find . -type l -exec ls -l \{\} \; | cut -c46- | grep '\-> /' 11# and bad protections 12echo "Looking for files that are owner-read ONLY ... " 13find . \( -perm 0600 -o -perm 0700 \) -print 14# And rogue large files 15echo "Looking for large files ... " 16find . -name lib -prune -o -name aftp-logs -prune -o \ 17 -name matrices -prune -o -name '*.ps' -prune -o \ 18 -name surplus -prune -o -size +500 -print 19echo "Looking for files with explicit PARCH references ... " 20find . -name '*.[ch]' -exec grep -l PARCH_ \{\} \; 21