IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 12th, 2004, 08:41 AM
muzerb muzerb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 muzerb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question How to enable Anonymous Access in IIS 6

What are the account requirements for aspx pages to be accessed anonymously on Windows 2003 server?.

When I view my aspx page in a browser locally or remotely I always get prompted for user and password. When I provide credentials for user in the admin group the page displays correctly.

I do not get prompted when viewing .htm files.

I would like to make the aspx pages available anonymously.

Here are my settings:

NTFS Directory Security:
Administrators - Full Control
ASP.NET Machine Account - Read & Execute, List, Read
Internet Guest Account - Read & Execute, List, Read
System - Full Control

Virtual Directory Tab:
Read - checked
Execute permissions - Scripts only

Authentication and access control:
Enable anonymous access - checked
User name: IUSR_COMPUTER_NAME
Basic Authentication - Not checked

Thank you in advance.

Reply With Quote
  #2  
Old May 12th, 2004, 02:07 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 38 m 23 sec
Reputation Power: 92
Not sure, but you need to make sure that the Internet Guest Account can read the file needed for ASPX pages, which is probably located here:

C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll

(that may be different depending on your version etc.)
__________________
- Edwin -

The General Rules Thread | The General FAQ Thread

Reply With Quote
  #3  
Old May 12th, 2004, 03:57 PM
muzerb muzerb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 muzerb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you, EdwinBrains.
You are right, giving the Internet Guest Account read rights to the aspnet_isapi.dll file resolved the problem.

Questions:

What group(s) should the Internet Guest Account be in? By default that account is only a member of the Guest group.

What users/groups should have access to the aspnet_isapi.dll file.
I checked other 2k3 boxes and the following users/groups are listed in the Security settings for the aspnet_isapi.dll file.
Administrators
ASP.NET Machine Account
IIS_WPG
Local Service
Network Service
Power Users
System
Users

I know that giving read rights to the IUSR_Machine_Name for the aspnet_isapi.dll file would solve the problem, however, I am trying to figure out the correct way the server should be setup.

I must have done something wrong to cause this in the first place as I don't hear anybody else complain about this.

Reply With Quote
  #4  
Old May 12th, 2004, 04:01 PM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Retired Moderator
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2004
Location: London, UK
Posts: 6,670 edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)edwinbrains User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced FolderFolding Points: 85411 Folding Title: Advanced Folder
Time spent in forums: 1 Week 6 Days 23 h 38 m 23 sec
Reputation Power: 92
Well I'm not entirely sure, but you want to give the least amount of permissions as possible to make it as secure as possible.

I don't think you want to add the Internet Guest Account to any other groups though, to reduce the chance of hackers breaking into your web server.

I think Doug G will give you more info about which groups should have access.

Reply With Quote
  #5  
Old May 12th, 2004, 08:30 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,829 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 20 h 23 m 12 sec
Reputation Power: 765
I don't ever add IUSR_whatever to any additional groups, but then again I only work on small systems.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #6  
Old March 11th, 2005, 02:53 PM
th3r10n th3r10n is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 1 th3r10n User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m
Reputation Power: 0
Enabling anonymous access on IIS 6.0

Quote:
Originally Posted by muzerb
Thank you, EdwinBrains.
You are right, giving the Internet Guest Account read rights to the aspnet_isapi.dll file resolved the problem.

Questions:

What group(s) should the Internet Guest Account be in? By default that account is only a member of the Guest group.

What users/groups should have access to the aspnet_isapi.dll file.
I checked other 2k3 boxes and the following users/groups are listed in the Security settings for the aspnet_isapi.dll file.
Administrators
ASP.NET Machine Account
IIS_WPG
Local Service
Network Service
Power Users
System
Users

I know that giving read rights to the IUSR_Machine_Name for the aspnet_isapi.dll file would solve the problem, however, I am trying to figure out the correct way the server should be setup.

I must have done something wrong to cause this in the first place as I don't hear anybody else complain about this.



I gave the anonymous account (IUSR_MachineName) read access to the abovementioned DLL but still didn't work.
The way I "solved" this problem was activating sub-authentication in IIS 6.0 (which poses a security threat), IIS 5.0 uses sub-authentication by default when you enable anonymous access but IIS 6.0 does not. For details on how to do this, please refer to http://support.microsoft.com/default.aspx?scid=kb;en-us;332167
Hope this can be of assistance, even though you solved your problem already.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > How to enable Anonymous Access in IIS 6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway