NTFS rights not honored

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default NTFS rights not honored

    Running Windows 2003 Server
    Framework 1.1

    A site is configured to use integrated security (in IIS 6)
    Windows autentication and user impersonation in web.config
    <identity impersonate="true" />
    <authentication mode="Windows" />

    I've got a ASPX page that lists folders and files from a predefined
    location on the server. These folders and files have access rights set to
    them by NTFS security. The problem is that everyone can see every file
    and
    folder, even though NTFS does not permit them.

    How can I expose a file structure for browsing through ASP.NET and
    still honouring NTFS file rights?


    --
    Pål Andreassen
    [email]cnny.naqernffra@gevznarg.ab[/email]
    (ROT13 to reply)
    Pål Andreassen Guest

  2. Similar Questions and Discussions

    1. #39073 [NEW]: safe_mode_include_dir not honored
      From: jim at centerfuse dot net Operating system: FreeBSD 4.11 PHP version: 5.1.6 PHP Bug Type: Safe Mode/open_basedir Bug...
    2. #39073 [Opn]: safe_mode_include_dir not honored
      ID: 39073 User updated by: jim at centerfuse dot net Reported By: jim at centerfuse dot net Status: Open Bug Type: ...
    3. NTFS permissions
      I need to reset the NTFS permissions of a windows 2003 web server to the default installation permissions. What's the easiest way of doing this?...
    4. NTFS
      How do I access my second drive in my computer that has has NTFS permissions from a previous XP installation. I formatted the primary drive an...
    5. how to change from NTFS to FAT 32
      Hello. any one ho knows how i change from a NFTS file system to FAT 32 when i have installed a new HD. / Bjorn
  3. #2

    Default Re: NTFS rights not honored

    You say that everyone can see every file and folder. What you mean is that
    your ASP page will DISPLAY every file and folder, do you not? The reason I
    say that is, there is only ONE account under which that ASP.Net application
    runs, and it is the ASP.Net worker process that is looking at the files and
    folders, and displaying information about them in the browser. The user is
    only looking at the browser, which doesn't require any special permission,
    unless the web site itself requires a Windows login to be viewed, and even
    then, that doesn't affect what user account your ASP.Net worker process is
    running under. It only affects who can view that page.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Pål Andreassen" <see@signature.for.email> wrote in message
    news:Xns9453731695856cnnynaqernffragevzna@207.46.2 48.16...
    > Running Windows 2003 Server
    > Framework 1.1
    >
    > A site is configured to use integrated security (in IIS 6)
    > Windows autentication and user impersonation in web.config
    > <identity impersonate="true" />
    > <authentication mode="Windows" />
    >
    > I've got a ASPX page that lists folders and files from a predefined
    > location on the server. These folders and files have access rights set to
    > them by NTFS security. The problem is that everyone can see every file
    > and
    > folder, even though NTFS does not permit them.
    >
    > How can I expose a file structure for browsing through ASP.NET and
    > still honouring NTFS file rights?
    >
    >
    > --
    > Pål Andreassen
    > [email]cnny.naqernffra@gevznarg.ab[/email]
    > (ROT13 to reply)

    Kevin Spencer Guest

  4. #3

    Default Re: NTFS rights not honored

    Since you have Impersonation set to true in the config file this means that
    the IIS authenticated user will be the identity used to access resources
    when the request is made. What type of authentication in IIS are you using.
    If you have it set up to use anonymous then the anonymous user will be the
    account who is accessing the resources. In order to get a better idea what
    who is accessing what you may want to download and run filemon
    ([url]http://www.sysinternals.com[/url]). It will list the account that is being used
    to utilize resources. Just run it while you are making a request for the
    page.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Holly

    Holly Mazerolle Guest

  5. #4

    Default Re: NTFS rights not honored

    [email]hollymamsft@online.microsoft.com[/email] (Holly Mazerolle) wrote in
    news:QeO4vy9wDHA.3384@cpmsftngxa07.phx.gbl:
    > Since you have Impersonation set to true in the config file this means
    > that the IIS authenticated user will be the identity used to access
    > resources when the request is made. What type of authentication in IIS
    > are you using. If you have it set up to use anonymous then the
    > anonymous user will be the account who is accessing the resources. In
    > order to get a better idea what who is accessing what you may want to
    > download and run filemon ([url]http://www.sysinternals.com[/url]). It will list
    > the account that is being used to utilize resources. Just run it while
    > you are making a request for the page.
    Thanks. I've used filemon before, but did not think of it now. In IIS I'm
    using Integrated security. Basic and anonymous is turned off.

    Since I've got impersonation on in web.config I though the request would
    be run as the actual logged in user, and not ASPNET.

    --
    Pål Andreassen
    [email]cnny.naqernffra@gevznarg.ab[/email]
    (ROT13 to reply)
    Pål Andreassen Guest

  6. #5

    Default Re: NTFS rights not honored

    > Since I've got impersonation on in web.config I though the request would
    be run as the actual logged in user, and not ASPNET.
    Yes, I think is what is happening for you.
    > The problem is that everyone can see every file and folder, even though
    NTFS does not permit them
    There is a difference between being able to _see_ the file in a directory
    listing and actually being able to read it. Can if you can't read the file
    you can see it! You will need to check whether you can actually read the
    file before showing it in the list to the user.


    Norman Rasmussen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139