Results 1 to 3 of 3

Thread: IUSR_2003ServerIIS

  1. #1

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    IUSR_2003ServerIIS

    OK, this is nutts. I have an asp.net app running on a windows 2003 server. I have my site directory security settings in IIS set to Integrated Windows authentication with anonymous access disabled. In my code I am using the directoryInfo class to access a folder on my server to serve up downloadable files. Instead of using the user I logged in as when I first hit the site "mydomain\myuser" It is trying to access the directory as "IUSR_2003SERVERIIS" That is the default user for anonymous access. What the hell? does the directory info class ignore IIS settings and use whatever the hell it feels like. Is there any way to force it to use the user I logged in as? I'm trying to restrict access to my shared folders only to the people I give read permission to. I can't do that if every user looks like they are "IUSR_2003SERVERIIS".
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: IUSR_2003ServerIIS

    Of course that's odd, but it might be something else. Does this happen to all of your ASP.NET projects?

  3. #3

    Thread Starter
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196

    Re: IUSR_2003ServerIIS

    Got it. for any one who cares you have to set the WindowsImpersonationContext to whatever user you're using. Why it defaulted to The iis default user with integrated security checked, I dunno, but it did.
    "And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
    Frank Zappa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width