#! /bin/bash if [ "$1" == "" ] then echo usage: $0 DIR exit 1 fi find $1 -type d -exec chmod 2750 {} \; find $1 -type f -exec chmod 640 {} \;