Re: Best Practices for File Access

From: David Elliott (DavidElliott_at_BellSouth.net.nospam)
Date: 03/09/04


Date: Tue, 09 Mar 2004 08:19:21 -0500

I don't think that I was clear. I am looking for HOW set permissions to files and
folders appropriately, given the scenerios below, so that the appropriate individuals
can access the files to read and write.

For example I could start IIS right click on a folder, go to directory
security and enable anonymous access. This is probably not the
best idea especially if files are only read or written by select individuals.

What are other methods are available.

 Scenerios I am looking to solve.

1) Attach an XML file to a WebControl TreeView
2) Anonymous access for pictures
    a) Read files that are in the virtual directory
    b) Read files that are on another disk partition
3) Grant read / write permissions to individual files based on a person or group
    and allow them to read / write..

Thanks,
Dave

DavidElliott@BellSouth.net

On Mon, 8 Mar 2004 16:26:48 -0800, "Steve C. Orr [MVP, MCSD]" <Steve@Orr.net> wrote:

>If you store your files in SQL Server then you can let it handle most of
>these details.
>Here's further information on that techique:
>http://www.aspnetpro.com/features/2003/07/asp200307so_f/asp200307so_f.asp
>
>Otherwise you'll probably store your restricted files in a private folder
>and use Response.Writefile once you've determined the user is authorized:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclasswritefiletopic.asp
>
>To find out if a file exists you can use the System.IO.File.Exists method.
>Here's more info:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemiofilememberstopic.asp
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconreadingwritingtofiles.asp
>
>--
>I hope this helps,
>Steve C. Orr, MCSD, MVP
>http://Steve.Orr.net
>
>
>
><DavidElliott@nospam.BellSouth.net> wrote in message
>news:300q409gesdqq651jcfehjnmd7v055paei@4ax.com...
>> I am trying to do File Access for an ASP.NET project and am having some
>> difficulty. I was wondering if a document on Best Practice for File
>Access exists
>> somewhere.
>>
>> Scenerios I am looking to solve.
>>
>> 1) Attach an XML file to a WebControl TreeView
>> 2) Anonymous access for pictures
>> a) That exist in the virtual directory
>> b) Exist on another disk partition
>> 3) Restricted access for read/write based on person or group
>>
>> I am aware of authorization and authenication and know how to implement
>> them.
>>
>> If there are some examples or documents on how to do this properly,
>> (i.e. NO Hacks), I would most interested.
>>
>> Thanks,
>> Dave
>>
>> DavidElliott@BellSouth.net
>



Relevant Pages

  • Re: Best Practices for File Access
    ... I am looking for HOW set permissions to files and ... For example I could start IIS right click on a folder, ... security and enable anonymous access. ... Scenerios I am looking to solve. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Removed IUSR_Computername, but...
    ... Thanks for the reply Jad... ... I have Anonymous access enabled because there are too many ... >Set NTFS permissions to allow access only to local admins ... I've given in that folder Administrator, ...
    (microsoft.public.inetserver.iis.security)
  • IIS Remote file access/permissions
    ... folder on a different machine. ... anonymous access disabled with the shared directory as ... another virtual directory in IIS. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Removed IUSR_Computername, but...
    ... You can disable anonymous access on the folder level too. ... mentioned in the previous post but instead of doing it on the site level, ...
    (microsoft.public.inetserver.iis.security)

Loading