I saw 'Never use 777 for security reason' and I also found Magento 2 recommended permission setup on Magento 2 folder/file permissions
find ./var -type d -exec chmod 777 {} \;
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
Is it safe to use 777 for those and why?