R
Ricky K. Rasmussen
I'm writing a C# Windows Application that (among other things) should check
that certain filesystem permissions are set up correctly. For this I need to
be able to test if a certain user has certian permission to a certian folder
(eg. does the "ASPNET" user have "read" access to the "c:\inetpub\wwwroot"
folder).
The only answer I could come up with, was to impersonate the ASPNET user and
then try to access the folder. But how do I do that, when the ASPNET user
has no password? It doesn't sound like the right answer anyway.
All other postings/articles I've found was dealing with setting the
permissions. Does this mean that it isn't possible to read the NTFS
permissions programmatically?
/ricky
that certain filesystem permissions are set up correctly. For this I need to
be able to test if a certain user has certian permission to a certian folder
(eg. does the "ASPNET" user have "read" access to the "c:\inetpub\wwwroot"
folder).
The only answer I could come up with, was to impersonate the ASPNET user and
then try to access the folder. But how do I do that, when the ASPNET user
has no password? It doesn't sound like the right answer anyway.
All other postings/articles I've found was dealing with setting the
permissions. Does this mean that it isn't possible to read the NTFS
permissions programmatically?
/ricky