|
-
August 24th, 2011, 10:41 AM
#1
Create directory and inherit parent's permissions
Hello. I want to create directory which inherits parent's permissions. How to do this?
this does not work:
DirectorySecurity security = new DirectorySecurity();
security.SetOwner(new NTAccount("test"));
security.SetAccessRuleProtection(true, true); // also false,false does not work
Directory.CreateDirectory("C:\\Users\\test", security);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|