Re: access files on a UNC virtual directory

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: WenJun Zhang[msft] (v-wzhang_at_online.microsoft.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 06:43:07 GMT

Hi,

When you are using server.MapPath to access the UNC share via FSO in
ASP, the 'Connect As' account set in IIS mmc doesn't impact here. You
have to grant the ASP page's execution context with permission on the
share folder.

For example, if anonymous access is enabled, the ASP page is running
with IUSR_<machinename> account by default. This is a local account
which shouldn't have the permission on remote share. Therefire you
should change the anonymous account to a domain account.

To perform a test, you can temporarily disable anonymous access and
other authentications, only enable Basic authentication on the ASP
application, then access with your domain\admin credential to test if
the script can work properly.

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security



Relevant Pages

  • Re: Wscript within VBA
    ... One box is running VBA code,. ... One box is a domain controller, or has an account trusted to manipulate AD ... >> It posts a form to an ASP page, ... >> Since what you want to do sounds like it will require admin privileges, ...
    (microsoft.public.vb.database)
  • Re: ASP using ADSI
    ... Kerberos auth (which you need for delegation) requires users in AD. ... I've just done all the ASP ... account in every bind operation. ... My environment is an NT4 domain that is being migrated to W2K3 AD domain. ...
    (microsoft.public.windows.server.active_directory)
  • Re: IIS6 & ASP: accessing network files with FSO fails
    ... >when i enable anonymous access and put in the domain account as user, ... >script works. ... so obviously asp is not running in the web application ... Normally IUSR/IWAM or the logged in user account. ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP Authentication on IIS 6.0 Windows 2003 Server 32bit help please
    ... when an ASP page is executed in IIS? ... site that requires a user to enter their domain account to access the ... the ASP script code ... I find that the .exe runs ...
    (microsoft.public.inetserver.iis.security)
  • Re: Accessing another computers administrative shares
    ... account) to allow access administrative shares. ... Set the user account that the ASP website runs under for the anonymous ... login to be a domain administrator account (not good because anyone visiting ...
    (microsoft.public.inetserver.asp.general)