Directory permission

https://drupal.stackexchange.com/questions/373/what-are-the-recommended-...

Securing file permissions and ownership


Posted by Jason Sale on November 1, 2010 at 12:40pm

Thanks for writing this and everything, but all that I and 99% of people reading this page really want is a list of numbers next to a list of folders.

  • /default on 755
  • /default/files including all subfolders and files on 744 (or 755)
  • /default/themes including all subfolders and files on 755
  • /default/modules including all subfolders and files on 755
  • /default/settings.php and /default/default.settings.php on 444

How to Set Up "sites/default/files" Permissions Properly on Windows

Setting permissions for the settings.php & files directory

Posted by mgifford on August 1, 2013 at 3:13am

I'd really like to see a clean way to do this that can get migrated into the Drupal handbook - https://drupal.org/documentation/install/settings-file or https://drupal.org/node/244924

I found this, which was interesting.
http://iis.net/learn/application-frameworks/install-and-configure-php-ap...

It suggested using icacls you can grant access to Drupal’s settings.php & the files directory. By setting permissions using something like:
icacls settings.php /grant BUILTIN\IIS_IUSRS:(W)
icacls files /grant BUILTIN\IIS_IUSRS:(W)

That doesn't seem to quite work for me. I'm not sure what's different between the IURS & the IIS_IUSRS user.

I tried to leverage the GUI using something like - http://www.techotopia.com/index.php/Understanding_Windows_Server_2008_Fi...

Seems like there's a similar issue with SugarCRM:
http://forums.sugarcrm.com/f115/problem-solved-file-write-permissions-un...

Maybe this is related to the UAC User Account Control:
http://serverfault.com/questions/4696/administrator-file-modification-pr...

Oh ya, there are references from Alessandro's videos here http://channel9.msdn.com/Series/PHP-at-Scale-on-the-Microsoft-Platform/D...

Other references to permissions in this group - https://groups.drupal.org/node/228848

@alexpilotti recommended:
icacls D:/sites/WBSMBS/sites/default /grant IIS_IUSRS:(OI)(CI)(RX,W)

I'm still looking for answers though.

SOURCE: https://groups.drupal.org/node/252173