Folder and File Permissions

Discussion in 'ASP .Net' started by Kapil via DotNetMonster.com, Apr 10, 2006.

  1. Hello everybody,
    I am using System.IO GetDirectories() method and GetFiles method to display
    all the files and directory on a DataGrid. Now I want to restrict accesss to
    Users to this directory and files. They should not be able to view this
    directory and files. How do I set the permissions from ASpX page .I am using
    forms authentication.

    Pls guide..

    Kapil

    --
    Message posted via http://www.dotnetmonster.com
     
    Kapil via DotNetMonster.com, Apr 10, 2006
    #1
    1. Advertisements

  2. Kapil via DotNetMonster.com

    Winista Guest

    If you want to control the access on files and directories using windows
    accounts then easiest would be to use windows auth and impersonation.
    Otherwise
    You need a mapping between your user account (one that was used to login
    with forms auth) and actual windows account. Or some kind of table that
    defines what files or folders the user can access.


    "Kapil via DotNetMonster.com" <u20614@uwe> wrote in message
    news:5e958fe182249@uwe...
    > Hello everybody,
    > I am using System.IO GetDirectories() method and GetFiles method to
    > display
    > all the files and directory on a DataGrid. Now I want to restrict accesss
    > to
    > Users to this directory and files. They should not be able to view this
    > directory and files. How do I set the permissions from ASpX page .I am
    > using
    > forms authentication.
    >
    > Pls guide..
    >
    > Kapil
    >
    > --
    > Message posted via http://www.dotnetmonster.com
     
    Winista, Apr 10, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jay
    Replies:
    2
    Views:
    853
    Brock Allen
    Apr 5, 2005
  2. Luis Esteban Valencia Muñoz
    Replies:
    3
    Views:
    1,608
    Scott Allen
    Jun 4, 2005
  3. Gallagher, Tim (NE)
    Replies:
    1
    Views:
    445
    Adam Jones
    Aug 21, 2006
  4. Curt K
    Replies:
    0
    Views:
    703
    Curt K
    Nov 3, 2006
  5. Adam

    File Upload Folder Permissions

    Adam, Mar 23, 2010, in forum: ASP .Net
    Replies:
    5
    Views:
    2,345
    Alexey Smirnov
    Mar 24, 2010
  6. Brian Watkins

    Directory FileSystemInfo file and folder permissions

    Brian Watkins, Nov 19, 2003, in forum: ASP .Net Security
    Replies:
    1
    Views:
    227
    Brian Watkins
    Nov 19, 2003
  7. Setting File & Folder Permissions

    , May 20, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    239
    Dominick Baier [DevelopMentor]
    May 20, 2005
  8. integrated login and folder permissions

    , Oct 13, 2005, in forum: ASP .Net Security
    Replies:
    9
    Views:
    216
    Paul Clement
    Oct 19, 2005
Loading...