Question

IIS redirect to UNC - "You are not authorized to view this page" error

Asked by: baze68



IIS virtual directory 'connect as' to network location on another server.  The UNC is '\\I95\it\HR'.  IIS 'connect as' user is a domain account called IISUser.  This user has been given read and execute, list, and read permissions on the HR folder.

I can access this page - http://hr/managers.shtml and then there are links like the following, http://hr/Managers/Pre-Self%20Identity%20Form.PDF, which point to the 'Managers' sub folder in the HR directory.

When I click a link I get prompted with a 'Connecting to' login prompt 3 times, and when I use an account that does have access via NTFS - I still get an error message saying:

"You are not authorized to view this page"

This folder '..\Managers' has been secured using NTFS permissions so that only domain users in the correct GBL groups have access to the docs and pdfs that are linked.

Can someone tell me why IE is not passing the current user token so that if people are in the right groups they will be able to acces this location?  Or, if the user must be prompted, why is their domain credential not allowing them to access/open the docs and pdfs that are linked.

Is this an issue with the IIS security setting or the NTFS permissions?



This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-07-05 at 09:20:16ID21908906
Tags

iis

,

authorized

Topic

Microsoft IIS Web Server

Participating Experts
2
Points
500
Comments
18

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Using UNC with the FileObject
    Is it possible to use UNC naming convension when moving files using the FileObject.Move? I've tried without any luck - I even tried "quote wrapping" which still didn't work. Has anyone had any joy doing this ...Where UNC is something like \\MyServer\C$\adoc.txt Thanks
  2. UNC
    Hi Experts, I've found an expression, but I don't know what it means. This is UNC and can be the path (???) to reach a remote InterBase server. Thanks for any help!! wbr Janos
  3. UNC path
    I would like to know what protocol used and what service is used when accessing a device with UNC path. example: \\servername does it use ICMP + DNS service? does it use ICMP + WINS service? any idea? thanks
  4. mac tiger can not access windows UNC?
    I have a intranet webpage and on it is a link that points to a folder shared out from a window 2003 server. The UNC path is \\myserver\folder\file.txt, the link on the web page is "forms". Problem is when ever i click on this link , Tiger gives me a "website...
  5. UNC Authentication
    Hello ladies and gents. I am getting a problem with one of my windows 2003 SP1 server machines. When you normall UNC to a 2003 server not joined to a domain you get asked for login credentials to view the shared resources, however after running the recent windows updates and...
  6. Users UNC access
    I would like for users to be able to UNC to a stand alone 2003 server. How can I give them rights to only do so?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: baze68Posted on 2006-07-05 at 12:33:36ID: 17045640

Okay, so this appears to be NTFS related, not IIS.  When I give the the 'connect as' IISUser account NTFS read/list permissions on the 'managers' folder/file - everything works.

BUT, I don't want everyone to be able to access/pull the files from that folder.  So how do I set up the NTFS permissions and the IIS authentication on the 'Mangers' virtual directory to allow acces to just the users in the GBL groups that I have granted NTFS permissions?

Thanks in advance for your help.

 

by: Dave_DietzPosted on 2006-07-05 at 21:49:19ID: 17048182

This issue is related to what credentials IIS is passign to the UNC share and the NTFS permissions set on the shared content.

When you set a 'connect as' user ID *all* access to the share will be based on the 'connect as' user's credentials, however there are ways of having IIS pass the accessing user's credentials instead.

What version of IIS are you using?

Dave Dietz

 

by: baze68Posted on 2006-07-06 at 04:27:27ID: 17049675

Dave,

Thanks for responding.  This is IIS 5 running on a Windows 2000 (SP4) server.  The content is being housed on a Windows 2000 server also.  Windows 2000 native Active Directory domain.

Regards,
Patrick

 

by: Dave_DietzPosted on 2006-07-06 at 06:10:47ID: 17050308

http://support.microsoft.com/?id=214806
How to Enable Pass-through Authentication for UNC Virtual Directories

This article should get you up and running.

Let me know if any of it is not clear of if you run into problems with it and I'll be happy to help.  :-)

Dave Dietz

 

by: baze68Posted on 2006-07-06 at 07:46:27ID: 17051025

Dave,

I looked over the linked document, but hav not implmented that yet.  I have made some progress, but maybe I still need to follow those instructions also.  Below is what I have done and what happens now:

On the 'Managers' virtual directory (..\Managers), I have unchecked 'Anonymous Access' and enabled ONLY 'Basic authentication'.  Now when I click a link that points to a file in that folder - i.e. 'http://hr/Managers/FORM%20HR%20NEW%20HIRE.doc' I get the username/password prompt.  If I put in a domain username/password that has NTFS permissions to that folder/file I can access it.  so this appears to be working correctly.

1.  Is there a way that IE can pass the currently logged on users' credentials so that they don't have to enter their username/password?  If so, is that what the linked document you sent does?

Thanks for your help,
Patrick

 

by: baze68Posted on 2006-07-06 at 09:02:42ID: 17051811

Interesting, the '..\Managers' folder has NTFS permissions that allow the 'Connect As' user (which is a domain user account called 'IISUser') to read/execute, list, and read.  There are also 3 global security groups that have been given the same access, and those groups have the user accounts that we want to allow to access that folder.

So with the IIS aithentication set to 'Basic auth', it prompts for username/password...even though the IIS 'connect as' user has access.  I assume that when you remove anonymous auth on that virtual directory that the 'connect as' user doesn't get used as the connecting credentials?

 

by: Dave_DietzPosted on 2006-07-06 at 12:35:56ID: 17053421

>>Is there a way that IE can pass the currently logged on users' credentials so that they don't have to enter their username/password?  

Yes, but that is client configuration and cannot be forced from the server side.  You can tell IE to send the logged in users credentials to sites in a particular zone (Intranet, Internet, etc) and it will automatically respond to Basic auth.

>>If so, is that what the linked document you sent does?

No.  :-)

>>I assume that when you remove anonymous auth on that virtual directory that the 'connect as' user doesn't get used as the connecting credentials?

You would assume incorrectly.  What this does is it causes IIS to ask the user for credentials to access the virtual directory.  Once the user has provided valid credentials IIS will then use the 'connect as' user credentials to access the actual contents of the virtual directory.

For this to work properly yopu will need to go through the document and make the changes to the Metabase to enable PassThrough authenticatioon.

If this is all within an Active Directory domain (users, computers and servers all in the same domain) you could try using Kerberos Delegation.  It is a little trickier to set up and absolutely will not work across the internet but it doesn't prompt for credentials.  I would suggest trying with Basic Passthrough first and then if circumstances dictate you may want to experiment with Kerberos.

Dave Dietz

 

by: Silvers5Posted on 2006-07-06 at 22:13:16ID: 17056240

It seems you are in the same lan.. if the server is joined to the domain then in IIS use integrated authentication.. this will autologon users to the unc if the have permissions on that unc.. if they get a popup and later they login after setting the credentials then in IE go to tools.. internet options..security.. change the internet custom level (click on the button) ... scroll to the bottom and selet automatically logon using  current username and password..
You can set this in a group policy object if you want it automatically propagated to the whole domain users..

regards
Michel
IIS MVP,MCDBA,MCAD,MCSA,CCNA

 

by: baze68Posted on 2006-07-07 at 07:40:22ID: 17058871

Dave,

Hmm, this is interesting.  Things seem to be working without setting up the Pass-through Authentication.  Users are getting prompted, and if they are not in the global security groups with NTFS permissions on the '..\Managers' folder they don't have access.  If they are in the right NTFS security groups they are granted access.

>> What this does is it causes IIS to ask the user for credentials to access the virtual directory.  Once the user has provided valid credentials IIS will then use the 'connect as' user credentials to access the actual contents of the virtual directory.

Based on my comment above - when IIS asks for user credentials to access the virt dir, it must take those and check the NTFS permissions first, and THEN if the user is allowed to access it must use the IIS 'connect as' user.  Is this correct?

If this is correct, then why would I need to use the Pass-through Authentication?

 

by: baze68Posted on 2006-07-18 at 08:30:32ID: 17131116

Dave,

I am finally going thru the 'pass thru auth' document, but my IIS 5 server does not have the 'Adminsamples' directory listed in step 5, below:

5.      Open a command prompt, and change to the %systemroot%\System32\Inetsrv\Adminsamples directory. (Note: %systemroot% is usually winnt on most systems).

Thoughts/tips?

Thanks,
Patrick

 

by: baze68Posted on 2006-07-18 at 08:40:11ID: 17131191

Dave,

Okay, so I am also confused by Step 6.

6.      At the prompt, type the following:
adsutil set w3svc/#/root/*vdir*/UNCUserName ""
(where # is the number of the Web site, and *vdir* is the name of the virtual directory created in step 1)

How do I find out what the # of the web site is?  I have 11 web sites hosted on this IIS server currently.

The 'Managers' virtual directory that I am attempting to set up the pass thru auth on, is actually a virt dir under the human resources web site folder.  The human resources web site is actually a share located on another computer - so the home directory for that folder is '\\I95\it\HR'.   So is the virt dir going to be "../root/Managers/..." ?

Sorry to need such specifics.

Thanks,
Patrick

 

by: Dave_DietzPosted on 2006-07-18 at 10:11:21ID: 17131974

The easiest way to find the site identifier in IIS 5 is to open the web site properties, click on 'properties...' in the logging section near the bottom and then look at the log file name at the bottom of the window that comes up.  The name will be something like W3SVC1\exyymmdd.log.  The '1' in W3SVC1 is the site identifier number you will want to use.

Assuming that the web site identifier is 1 the command line will look like the following:

adsutil set w3svc/1/root/managers/UNCUserName ""

The command doesn't care where the content is located physically, just where it resides in the Metabase.

Dave Dietz

 

by: baze68Posted on 2006-07-18 at 10:54:25ID: 17132311

Okay, so what if I don't have the 'Adminsamples' directory listed at the location they are describing?  I assume I just need to locate/install the adsutil tool?  Suggestions on this?

 

by: baze68Posted on 2006-07-18 at 11:06:09ID: 17132405

Okay, I found adsutil in 'C:\Inetpub\AdminScripts'

 

by: baze68Posted on 2006-07-18 at 11:11:30ID: 17132446

Okay, so when I ran the command - I get this error:

C:\Inetpub\AdminScripts>adsutil set w3svc/11/root/managers/UNCUserName ""

ErrNumber: -2147463162 (0x80005006)
Error Trying To SET the Property: UNCUserName

Any ideas?

 

by: Dave_DietzPosted on 2006-07-18 at 11:33:27ID: 17132634

I just reread the description and it sounds like the root fo the website is actualy pointing to a UNC path.

Try the command again but leave out the vdir name - it is likely inheriting the information from the root:

adsutil set w3svc/11/root/UNCUserName ""

Dave Dietz

 

by: baze68Posted on 2006-07-18 at 11:55:37ID: 17132797

Okay, well this time it appears to haev taken the comman - see below:

C:\Inetpub\AdminScripts>adsutil set w3svc/11/root/UNCUserName ""
UNCUserName                     : (STRING) ""

Now I just need to go finish the steps in the document and see if things are working.

 

by: baze68Posted on 2006-07-18 at 12:09:15ID: 17132882

Dave,

Well...I completed the steps in the article and stopped/restarted IIS.  It appears that the pass thru auth is now working, BUT...and this is a BIG BUT...the pass thru auth is now on the 'root' of the HR website.  So I guess the command really did need to be placed on the ./Managers virt directory.

I don't really need the entire HR site to be password protected - just the Managers section.  Any idea how I can reverse the steps and get it back to the old way?

Then, we will need to figure out why I got the error when I tried to run the comman against the Managers virt dir?

Thanks,
Patrick

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...