Re: 401.1 Error w/ Anonymous Access

From: Peter Beck (pbeck@inscapesolutions.com)
Date: 11/01/02


From: "Peter Beck" <pbeck@inscapesolutions.com>
Date: Fri, 1 Nov 2002 17:09:28 -0500


Thanks for your help Karl - I re-built the NTFS permissions, and with a
little more tinkering I was able to get it to work. I'm still not *exactly*
sure what was going wrong - it was a simple html page, so the IWAM account
wasn't being used - but learning a bit about how to use the audit files was
also really useful.

Regards,

Peter.

"Karl Levinson [x y] mvp" <jamescagney90210@excite.com> wrote in message
news:OoAGj5UgCHA.2544@tkmsftngp11...
>
> "Peter Beck" <pbeck@inscapesolutions.com> wrote in message
> news:OLerZbSgCHA.1648@tkmsftngp10...
> > Hi -
> >
> > I'm having a hard time getting Anonymous Access to work, and I'm
wondering
> > if anyone can point out what I'm doing wrong.
> >
> > This isn't mission-critical - I'm just working through setting the
machine
> > up this way to make sure I understand how it is *supposed* to work.
> >
> > - I'm using IIS5.0
> >
> > - I've set up a local account on the machine (Win2000 Professional,
> machine
> > called MIS-1112), and called the account SiteUser.
> >
> > - I've created a folder in the IIS "Default Web Site" called
> "SecurityTest",
> > and put a "hello world"-type page page inside the folder, called
> > default.htm.
> >
> > - In the "Directory Security" tab of the "Properties" of the folder in
the
> > "Default Web Site", I've disabled Integrated Windows Authentication,
and
> > enabled "Anonymous access". Clicking on "Edit", I've set
> MIS-1112\SiteUser
> > as the Username. I'm allowing IIS to control the password as this is a
> > local account (although it doesn't seem to make adifference if I leave
> this
> > box un-clicked)
> >
> > - In "Explorer" I've give SiteUser "Full Control" to the folder
> > "SecurityTest" and to the file "default.html"
> >
> > - In the local machine's Local Security Policy I've allowed SiteUser to
> Log
> > On Locally
> >
> > Having done all this, if I type "mis-1112/SecurityTest/default.html" I
> get
> > a 401.1 error. I am under the impression that if Anonymous Access is
> > allowed, IIS will treat the request as if it is coming from the user
> > "SiteUser", and treat the request with the permissions "SiteUser" has,
> > which should allow the file to be served.
> >
> > Obviously I'm missing some piece of the puzzle, or some concept - can
> > anyone straigten me out about this?
>
> It's a good idea both for troubleshooting and security to enable file and
> registry access failure auditing on all files and the HKEY_Local_Machine
> registry hive. Then you can see what is going wrong in the Windows
security
> event log. Search this newsgroup for "auditing" for further instructions.
>
> Also, as you may already know, if these are web scripts [such as .ASP] and
> the "application isolation" setting on the folder containing the scripts
is
> set to Medium or High in the IIS MMC, the IWAM_computername account is
being
> used instead of the anonymous user account.
>
> I assume you've already read www.iisfaq.com and www.microsoft.com/support,
> especially searching for the sections on "minimum NTFS permissions" for
IIS
> to work.
>
>
>



Relevant Pages

  • Re: Basic Authentication fails with Error 401.2 where Integrated s
    ... On the IIS directory security tab, anonymous access is disabled, digest ... authentication is disabled, integrated authentication is disabled and basic ... account created has full permissions for the folder and the file that's in it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: DCOM calls fails - access denied
    ... That's exactly how I understood the ASP.NET security. ... But why does one configuration work but not the other? ... should get the token from IIS. ... If you set there a domain account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cannot use usernameForCertificateSecurity with IIS application pool custom account
    ... other account does not. ... It seems to be a bug or problem in one of the CryptoAPI functions. ... In IIS 5.0/6.0 to process the PFX file I use the CryptoAPI function ... The security context token cannot be retrieved ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: DCOM calls fails - access denied
    ... IIS security. ... That means the worker ... If you set there a domain account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: 401.1 Error w/ Anonymous Access
    ... > - I've set up a local account on the machine (Win2000 Professional, ... > - In the local machine's Local Security Policy I've allowed SiteUser to ... I am under the impression that if Anonymous Access is ... IIS will treat the request as if it is coming from the user ...
    (microsoft.public.inetserver.iis.security)