Home All Groups Group Topic Archive Search About

Propagate Permissions in ACL in C#

Author
17 Apr 2006 5:05 AM
tirathankarg
hi,
If you click on a folder and go Advanced Options in Security tab, there
are two options there:
1. Inherit from parent permission entries...
2. Replace permission entries on all child objects...

I want to set the second option of "Replace permission entries..." on
through .net code.

By default whenever a folder is created in .Net, first option of
inhertitance is on.But i want to forcibly propagate parent permissions
to child.

Please tell me how to do it in C#.

Author
18 Apr 2006 2:55 PM
Nicole Calinoiu
AFAIK, there is no Windows API function or .NET Framework method that will
override explicit child ACEs in this way.  Unless I've missed something,
you'll need to manually iterate over all child objects, removing any
non-inherited ACEs from each DACL in order to achieve the same effect.


<tirathank***@rediffmail.com> wrote in message
Show quote
news:1145250333.211408.53610@i40g2000cwc.googlegroups.com...
> hi,
> If you click on a folder and go Advanced Options in Security tab, there
> are two options there:
> 1. Inherit from parent permission entries...
> 2. Replace permission entries on all child objects...
>
> I want to set the second option of "Replace permission entries..." on
> through .net code.
>
> By default whenever a folder is created in .Net, first option of
> inhertitance is on.But i want to forcibly propagate parent permissions
> to child.
>
> Please tell me how to do it in C#.
>

AddThis Social Bookmark Button