0

This question already has an answer here:

In Magento 2, How to set chown and chmod for root folder and sub folder in linux.
My OS system is the CentOS 6.5.
please, guide me step by step.

P/S: When use this command "find ./var -type d -exec chmod 777 {} \;" is this security ?

marked as duplicate by Raphael at Digital Pianism, Fabian Schmengler, Qaisar Satti, Keyul Shah, Amit Bera May 19 '16 at 18:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • It's not help my issue.B/c my os is Centos – MrTo-Kane May 19 '16 at 8:57
  • I ran this command "find . -type f -exec chmod 644 {} ;" and then get error "find: missing argument to `-exec'" – MrTo-Kane May 19 '16 at 9:01
  • 1
    You need to run find . -type f -exec chmod 644 {} \; notice the backslash at the end of the command – Raphael at Digital Pianism May 19 '16 at 9:11
  • Yes, you are right ! – MrTo-Kane May 19 '16 at 9:15
  • When use this command "find ./var -type d -exec chmod 777 {} \;" is this security ? – MrTo-Kane May 19 '16 at 9:27
1

You can find the details of Magento 2 permissions in the official documentation: http://devdocs.magento.com/guides/v2.0/config-guide/prod/prod_file-sys-perms.html

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