Forum Moderators: open

Message Too Old, No Replies

IIS is authenticating my pages

and asking me to login?

         

trillianjedi

10:16 am on Jun 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hoping someone can help. I have very very little IIS experience (and having to use IIS 5.0 for this project, but it's only a prototype).

IIS is asking to AUTH on every webpage in my www directory.

Header I get back looks like this:-

HTTP/1.1 401 Access Denied
Server: Microsoft-IIS/5.0
Date: Fri, 11 Jun 2010 10:15:23 GMT
WWW-Authenticate: Negotiate
WWW-Authenticate: NTLM
Content-Length: 4046
Content-Type: text/html

I'm guessing this may be related to file permissions or something, but don't know where to start.

Any pointers ?

Thanks!

marcel

12:04 pm on Jun 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's been a while since I last used IIS5, and I don't have a test machine with it installed so I can only give you a couple of pointers.

- Make sure that 'Enable Anonymous Access'* is checked, take note of the Anonymous username.
- Check that this user has at least read rights to the folder containing the website and its subfolders.

* This needs to be checked for the website in IIS, in IIS6 it is under the tab 'Directory Security'

trillianjedi

12:52 pm on Jun 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Marcel - you pointed me in the right direction.

It wasn't read access, as these are PHP scripts. So what I discovered is that the anonymous user that a user has to be when they're anonymous (sorry, but this is why I love Linux so much :) ) has to have exec priv's to run the scripts.

So I changed the user that anonymous users are, and it's all working great now.