Find all files and directories on server with 777 or 666 permissions
find / -type d -perm 0777 find / -type f -perm 0666
Find folders 777 and files 666 and change to 755 en 644
find /home -type d -perm 0777 -exec chmod 0755 {} \;
find /home -type f -perm 0666 -exec chmod 0644 {} \;