解决方法
对于文件:
$find /path/to/directory -type f -print0 | xargs -0 chmod 664
对于目录:
$find /path/to/directory -type d -print0 | xargs -0 chmod 775