Internet Search

Directory permission

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 - or

I found this, which was interesting.

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 -

Seems like there's a similar issue with SugarCRM:

Maybe this is related to the UAC User Account Control:

Oh ya, there are references from Alessandro's videos here

Other references to permissions in this group -

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

I'm still looking for answers though.