finddir.noread 415 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#
find . -type d -exec ls -ld {} \; | egrep -ve "r.xr.xr.x"

if($status == "0") then

#the grep command found something because it finished with status zero

echo " "
echo "----------------------------------------------------"
echo " The above directories do not have ugo rx permission"
echo " This makes them unreadable to some users           "
echo "----------------------------------------------------"

endif