Thanks for any help. I thought this would be the perfect place to ask my question.
My setup: Drupal 7.15 / IIS 7.5 / PHP5.3 / SQL Server 2008
I started receiving these crazy "Permission denied in drupal_unlink()" errors after an update from 7.13 to 7.14 (and then 7.15). At first, I focused on the permissions for the tmp directory. But after getting some assistance from Drupal's issue queue, I was able to pinpoint the problem as being related to the "sites/default/files" directory.
This is because each time I updated Drupal, I'd get an error about how the "files" directory was not writable. So this is what I tried:
I logged directly onto the server (IIS 7.5) using IIS Manager 7
Under the "sites/default/files" directory, I changed the permissions for the IIS_IUsrs account to "Full Control". I still saw the errors.
Under the same "sites/default/files" directory, I changed the permissions for the server's all users (SERVERNAME\Users) account to "Full Control". The errors went away.
Please Note: This is an internal server, so I wasn't worried about hacking when I tested this out.
I was happy to see the errors finally disappear, but allowing write/execute permissions for all users on that server is obviously not what I want to do. I hate to assume, but I'm assuming that this isn't how Drupal intended it to be set up on Windows. Does anyone know how I should approach and/or solve this security/permissions issue? I'd really appreciate your help.
In the meantime, I'll keep looking around for a solution.