IIS WebServer CreatesNew file: OwnerShip?
- by Beaud.
IIS is configured for Integrated Windows Authentication.
web.config is configured as follows:
<authentication mode="Windows" />
<identity impersonate="true" />
We are Load balancing between \webserver1 and \webserver2.
Windows Server 2003
\\webserverX creates a XML file to \\share1 and access is denied.
We got pass through access denial by allowing Everyon to access the share...
We would like to have the impersonated user to be the owner of the created file. Instead, \\webserver1's computer account is the owner.
How can we make sure that the impersonated user has ownership of the file at creation time?
PROGRESSION:
I decided to create the file locally on \\webserver1's root directory.
File's ownership is NETWORK SERVICES even if impersonate="true".
I'm unable to change ownership of the file in C# code.
Why when creating a file, IIS won't use the impersonated user's write permissions? If it actually does, what I am doing wrong?