Cambiar permisos de archivos en mac
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;
## Just for php files
sudo find . -type f -iname '*.php' -exec chmod 0644 {} \;
## Find file with permissions diferent than
sudo find . -type f ! \( -perm 755 -o -perm 644 \) -printf "%m\t%p\n"
## Find file with permissions and change permissions
sudo find . -type f -perm 0777 -exec chmod 775 {} \;