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?

1 Answer 1


I don't think this is recommended?

Where did you find this?

Refer the official documentation: https://devdocs.magento.com/guides/v2.4/install-gde/composer.html


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.