title: Permission issue of generated folders in magento2
body: <p>Whenever we are doing the static content deploy in magento2 instance in ubuntu environment.the generated folders create with following permission</p>
  
  <p><strong>0770</strong> and so that when we are browsing via URL the page is not loading, I have tried in many ways of work for it , what magento2 freak guys doing for this kind of scenario rather giving the manual permission to the folder when it is created, the Following class is responsible for the creating the folders with permission.</p>
  
  <p>This is default driver interface class</p>
  
  <pre><code>Magento\Framework\Filesystem\DriverInterface
  
   const WRITEABLE_DIRECTORY_MODE = 0770;
  </code></pre>
  
  <p>This below class is used for the file generator</p>
  
  <pre><code>Magento\Framework\Code\Generator\Io
  </code></pre>
  
  <p>This function is used for creating the directory </p>
  
  <pre><code>private function _makeDirectory($directory)
  </code></pre>
  
  <p>If you have any suggestions or idea post it now.</p>