Re: NTFS rights not honored
From: Daniel O'Connell (onyxkirx_at_--NOSPAM--comcast.net)
Date: 12/16/03
- Previous message: Rick: "FormsAuthenticationTicket in non ASP.Net App"
- In reply to: Pål Andreassen: "NTFS rights not honored"
- Next in thread: Pål Andreassen: "Re: NTFS rights not honored"
- Reply: Pål Andreassen: "Re: NTFS rights not honored"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 16 Dec 2003 10:15:48 -0600
"P$BiM(B Andreassen" <see@signature.for.email> wrote in message
news:Xns94536C41ADAB7cnnynaqernffragevzna@207.46.248.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?
>
As I recall, NTFS makes no effort to hide files you have no access to from
you, it simply will not let you access them. You need go no further than
your own C(or whatever drive has windows anyway) drive to find that. In
c:\documents and settings\ you can see other users folders, and you can see
the c:\system volume information folder(assuming you have hidden files
showing).
It is an annoyance but a feature thats still missing in ntfs5 and win2k\xp.
There is a level of hope that it will be added in Longhorn. I assume that is
what you mean, or can they open files as well?
However, you could probably modify your aspx page to filter based on
permissions, you will simply need to get ahold of the user token and do file
security checks. I am surei ts possible but I don't know how. I will do some
research shortly and see what I can come up with.
If all users can open all files, then there is a deeper security problem at
hand, in which case I would recommend posting to the security newsgroups for
help.
> --
> P$BiM(B Andreassen
> cnny.naqernffra@gevznarg.ab
> (ROT13 to reply)
- Previous message: Rick: "FormsAuthenticationTicket in non ASP.Net App"
- In reply to: Pål Andreassen: "NTFS rights not honored"
- Next in thread: Pål Andreassen: "Re: NTFS rights not honored"
- Reply: Pål Andreassen: "Re: NTFS rights not honored"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|