I have an IIS 7.5 web server running on Windows 2008r2. When I try to write to a file I get a Permission Denied error, but I can't figure out how to fix the permissions.
- I have PHP configured via FastCGI to allow impersonation
- I have IIS using kerberos to get the authenticated user via Windows Authentication. The AppPool the site runs under is running under a service account. That service account is a member of the Administrators group on the server.
- I can see (in PHP) who this user is via the
- That user should be who is trying to edit the file. On this system, I am an Administrator.
- The file has SYSTEM and Administrators with Full Control. Users have Read and Read & Execute permissions to the file (which are being inherited from all the way at the root
C:\). These are the only users/groups listed as having permissions to the file.
- Via PHP, I can read the file, but I cannot write.
- When I run
phpinfo(), it lists
servername$, but that isn't an account I can provide permissions to (windows can't find it).
So far, I have attempted:
- Adding the IUSR, Authenticated Users, Anonymous Logon, NETWORK SERVICE accounts and giving them full control. Just to see if I could write. No success.
- Giving full control to the Users group. No success.
- Recreating the file. No success.
- Ensured that SYSTEM, Administrators, and Users have permissions inherited all the way from root
C:\so that it shouldn't be an inaccessible path issue.
I am not sure where to go from here. I am a Linux/Mac guy normally but I have to deploy this site to Windows.
Any suggestions on where to check permissions that I may have missed?