Removing the "Inherit permissions from parent" from an NTFS folder using System.Security.AccessControl
- From: "Rahul" <rahuldj@xxxxxxxxx>
- Date: 15 Mar 2007 01:02:11 -0700
Hello,
I am trying to remove all the ACEs present on a local NTFS folder
using C# -> System.Security.AccessControl.
What I want is just to remove any permission (inherited or explicit)
present on that particular folder and replace those permissions with
access permissions of my own.
I am the administrator of this system so there should not be any
problem while doing this regarding "access denied" errors.
I got the "removing explicit users" part correctly but the inherited
permissions just won't go away unless I uncheck the box myself and
then run the code.
(I already know who has the permissions on that particular folder)
Can anyone tell me how to "uncheck" the box by C# code? (Using
System.Security.AccessControl or by any other way?)
Thanks.
.
- Follow-Ups:
- Prev by Date: Re: limited account permission and writing to system areas?
- Next by Date: Re: Removing the "Inherit permissions from parent" from an NTFS folder using System.Security.AccessControl
- Previous by thread: what encoding does system.xml.xmldocument.save(string path) use to save the xml document if there is no <?xml... in the front of the xml document?
- Next by thread: Re: Removing the "Inherit permissions from parent" from an NTFS folder using System.Security.AccessControl
- Index(es):
Relevant Pages
|