Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have problems setting up the right permissions on my server for writing, modifying content. I simple get a "Access denied" when I try to unpack a zip-file or write some files to the folder using ASP.NET.

What recommendations do you recommend for setting up permissions for ASP.NET (writing files, unpacking files)?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

By default this is the application pool identity's user that needs write access. That's Network Service by default for IIS6 and IIS7 (but not IIS7.5) Check the properties of your app pool and try setting that.

If you have impersonation turned on in ASP.NET then it will be your website's identity (anonymous or authenticated if you use Windows Authentication).

To find out for sure which user is denied permission, run process monitor from sysinternals.com. It's safe to run on a production server. After getting a capture while you reproduce the error, search for the word 'denied'. That will show which user tried to access what.

share|improve this answer
    
Setting the application user to write solves this issue! –  meep Dec 14 '09 at 9:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.