After successful installing Magento 2 we get some trouble with folder permission on some specific server configuration.
Official Magneto site recommends to set 770 for folders and 660 as file permissions but after that we may get 403 forbidden error or CSS and JS would not load properly.
In my case 775 for folders and 664 as file permissions works properly. But still it creates issues for some template folders and files which Magento generates on the fly, because Magento creates them with default Magento permissions 770 and 660. If we do below changes in code this issue can be resolved.
Official Magneto site recommends to set 770 for folders and 660 as file permissions but after that we may get 403 forbidden error or CSS and JS would not load properly.
In my case 775 for folders and 664 as file permissions works properly. But still it creates issues for some template folders and files which Magento generates on the fly, because Magento creates them with default Magento permissions 770 and 660. If we do below changes in code this issue can be resolved.