PC Review


Reply
Thread Tools Rate Thread

Replacing NTFS permissions on all child objects

 
 
Roshan
Guest
Posts: n/a
 
      5th Apr 2006
Hi,

In NTFS all folders/container objects have an option called 'Replace
permission entries on all child objects with entries shown here that
apply to child objects'

As I understand this option replaces all explicitly configured and
inherited ACEs on all child objects of the folder with the ACEs of that
folder.

I don't see any option in the DirectorySecurity class to achieve this
functionality.
Does this mean that I must use Directory.GetFileSystemEntries() method
to traverse all the child objects, grandchild objects and so on and
explicilty set rights on them. This seems very ineffecient. Is there
any API to do this?

Any help is greatly appreciated

Thanks,
Roshan

 
Reply With Quote
 
 
 
 
Nicole Calinoiu
Guest
Posts: n/a
 
      5th Apr 2006
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.



"Roshan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> In NTFS all folders/container objects have an option called 'Replace
> permission entries on all child objects with entries shown here that
> apply to child objects'
>
> As I understand this option replaces all explicitly configured and
> inherited ACEs on all child objects of the folder with the ACEs of that
> folder.
>
> I don't see any option in the DirectorySecurity class to achieve this
> functionality.
> Does this mean that I must use Directory.GetFileSystemEntries() method
> to traverse all the child objects, grandchild objects and so on and
> explicilty set rights on them. This seems very ineffecient. Is there
> any API to do this?
>
> Any help is greatly appreciated
>
> Thanks,
> Roshan
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Propagating permissions to child Objects =?Utf-8?B?VmFsZXJpZSBD?= Microsoft Windows 2000 Security 1 25th May 2007 06:07 AM
Replacing NTFS permissions on all child objects Roshan Microsoft Dot NET 1 5th Apr 2006 03:46 PM
Reset permissions on all child objects siwi Microsoft Windows 2000 File System 0 16th Jan 2004 06:22 AM
Replace Permissions enteries on all child objects with enteries nhaghi Microsoft Windows 2000 File System 1 12th Oct 2003 12:34 AM
Replace Permissions enteries on all child objects with enteries shown .. nhaghi Microsoft Windows 2000 Advanced Server 0 10th Oct 2003 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.