So I know that variations on this question have been asked tons of times, but I'm still confused so I'm hoping to ask as simply as I can and hopefully you'll be able to answer as simply as you can.
In IIS7.5, I have a website that run under an application pool identity of "NetworkService". The anonymous user always runs as IUSR.
When an anonymous user opens my web page and tries to trigger an action that will write information to a file, is it NetworkService that needs write permission on the folder or is it IUSR?
It's tricky to understand as, logically, if the application is running as NetworkService and the application is trying to write the file, then the application account should be the one with the permissions. However, this would seem to make the user identity redundant. So does my application authenticate as the user or as the application?