Re: folder permissions and NTFS

From: Joe Kaplan (ilearnedthisthehardway@noway.com)
Date: 02/14/03


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
?
>
>
>
>
>



Relevant Pages

  • Get 5.5 SecurityDescriptor with ADSI?
    ... I've been looking at the how to enumerate the security descriptor on ... I started looking at ADSI and put together some C++ ... It retrieves and prints a couple of ... Is it possible to use ADSI to retrieve and enumerate the security desciptor ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Programming the User-Account_Property using C#
    ... Using the security descriptor get the DACL for the object. ... Create an ACE and add: ... I am trying not to use ADSI in my new program, ... I don't want to have to write a wrapper for my existing unmanaged code ...
    (microsoft.public.dotnet.languages.csharp)