Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C# : issue with file access control
- FileInfo fi = new FileInfo(path);
- FileSecurity ds = fi.GetAccessControl();
- ds.AddAccessRule(new FileSystemAccessRule("Authenticated Users", FileSystemRights.xxxxxxxx, AccessControlType.Deny));
- fi.SetAccessControl(ds);
Add Comment
Please, Sign In to add comment