Re: folder permissions and NTFS
From: Joe Kaplan (ilearnedthisthehardway@noway.com)
Date: 02/14/03
- Next message: Hans Mogaard: "SymmetricAlgorithm Flush problem"
- Previous message: Michel Gallant (MVP): "Re: Does .NET detect alterations to an assembly?"
- In reply to: Joao Silva: "folder permissions and NTFS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Joe Kaplan" <ilearnedthisthehardway@noway.com> Date: Fri, 14 Feb 2003 14:22:28 -0600
>From managed code, you could:
Use COM Interop with activeds.dll and adssecurity.dll to use the ADSI
security descriptor objects;
Use the .NET WMI wrappers (System.Management) to use the WMI provider to do
this (I've never tried this);
Use the Win32 Security wrapper posted on GotDotNet by an MS employee to add
the required ACEs to the security descriptors;
I can't really give you any specific examples on how to proceed, but the
ADSI group would be decent place to ask about details on option 1.
Joe K.
"Joao Silva" <joaosilva@quarkleap.com> wrote in message
news:O$Wy#r70CHA.2288@TK2MSFTNGP09...
> I have a windows service(C#) running in a W2K server that has to create
> directories with different user or role permissions(as in NTFS) in a
company
> domain, to
> be more specific each folder will only be accessible by either a certain
> user (determined at run time) or any admin. Any help how to go about this
?
>
>
>
>
>
- Next message: Hans Mogaard: "SymmetricAlgorithm Flush problem"
- Previous message: Michel Gallant (MVP): "Re: Does .NET detect alterations to an assembly?"
- In reply to: Joao Silva: "folder permissions and NTFS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|