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);