find . -type f  -perm 755 -exec chmod 644 {} \;

find . -type d  -perm 777 -exec chmod 755 {} \;