directory-security

Windows File security, removing an access rule

I have the following code, that should remove the access of users from a certain folder. Unfortunately it doesn't (the access rule remains in place). No exception is thrown. AuthorizationRuleCollection arc = ds.GetAccessRules(true, true, typeof(NTAccount)); foreach (FileSystemAccessRule ar in arc) { if (ar.IdentityReference is NT...

Directory Security

Hi, my app is creating a directory so I can store log files in if, however i'm adding a user security to the directory but i don't know how to make it propagate, example i'm adding the user everyone to the directory, read and write access, but when my app then stores a log file in it this directory the log file has not inherited the ever...