I've setup IIS 7 on server 2008 R2. So far so good I can run aspx files but the problem comes with a aspx application that needs to write. So I figure ok, must be permission issue.
So my folder setup is:
c:\web\ <-- root of web folders
c:\web\testuser01 <-- simulated user account folders
c:\web\testuser02 <-- simulated user account folders
permissions on c:\web is:
domain users - read/execute
Administrators - full control
permissions on c:\web\testuser01 is:
testuser01 - full control
administrator - full control
webx - read/execute (webx is just a sample account name, but i use a similiar account name to map anonymous connections to a domain account)
testuser02 is the same as above except "testuser02 replaces testuser01".
Now the reason why i have a "webx" domain account in there because in our production environment, we're going to move the web folders to a network storage drive. So i need a domain account to map anonymous connections to a domain account that can access the network share and have read/execute perm.
Ok, so now i have a sample guestbook application that when i run it, says permission denied on a specific file. Ok, I go and check and sure enough, I realize because webx is mapped for anonymous connections and only has read/execute it can't write. I tested and make sure that was the case, I gave webx write access just to that file and no more problems. My question then is how can i map anonymous connections to each of the user's folders domain user account?
I'm thinking it must be something to do with a web.config file that i can dump in each of the user's folder, but i am unsure if this is the way to do it?
The idea is we want to setup a environemnt for students to learn asp .NET programming. It won't be for a business website so the structure will not be the same. We want to be able to do allow students to just dump their files in their own folders and not have to worry about permissions.
can anyone shed some light as to which direction i should be heading?
other settings I have is:
impersonation is OFF
anonymous authentication is enabled
Application pool is set to integrated v2.0
applilcation pool process model is set to a domain identity webx (needed because when we move the folders to a unc path we need an account to access the share that will map to anonymous)
Thanks in advance!