Re: Allowing access to Inetpub subdirectories

From: Jeff Cochran (jcochran.nospam_at_naplesgov.com)
Date: 05/13/03


Date: Tue, 13 May 2003 19:39:10 GMT


On Tue, 13 May 2003 10:02:03 -0700, "Stew" <smeyers@snet.net> wrote:

>I have a web site that allows users to upload images. I
>want to place the images in an 'images' subdirectory of
>the Web site directory (i.e.
>c:\Inetpub\wwwroot\MyWebSite\images). I am using an HTML
>File Field to upload the image and am using ASP.NET.
>When I try to write the image to the directory, I get the
>message 'Access to the
>path "c:\Inetpub\wwwroot\MyWebSite\images\1.jpg" is
>denied.". How do I give security privalages to allow
>create/write access to that directory? I tried setting
>the 'Write' property of the directory in IIS, but that
>did not solve the problem. I even tried creating a Web
>Share, but that did not work either. By the way, it
>works fine if I use a directory not within 'Inetpub'.

Did you set the proper NTFS permissions on the folder itself? ie:
Modify for the IUSR account?

Of course, you also may open yourself to hosting WaReZ by simply doing
it this way.

Jeff



Relevant Pages

  • Re: Allowing access to Inetpub subdirectories
    ... you should consider using the permissions wizard built into the UI - right ... >>>I have a web site that allows users to upload images. ... >>Did you set the proper NTFS permissions on the folder ...
    (microsoft.public.inetserver.iis.security)
  • Re: Allowing access to Inetpub subdirectories
    ... >>I have a web site that allows users to upload images. ... >Did you set the proper NTFS permissions on the folder ...
    (microsoft.public.inetserver.iis.security)
  • Allowing access to Inetpub subdirectories
    ... I have a web site that allows users to upload images. ... create/write access to that directory? ...
    (microsoft.public.inetserver.iis.security)

Quantcast