1#!/bin/bash 2 3for folder in "$@" 4do 5 find $folder -type d -exec chmod 775 {} \; 6 find $folder -type f -exec chmod 664 {} \; 7done