I'm trying to create a folder and give it read permissions:
public static void createFolder(string path) {
DirectorySecurity securityRules = new DirectorySecurity();
securityRules.AddAccessRule(new FileSystemAccessRule(@"EMPRESA\account1", FileSystemRights.Read, AccessControlType.Allow));
Directory.CreateDirectory(path, securityRules);
}
I would like to allow access to this folder for any domain login. How do I leave @Dominio\usuarios
to do this?
Thank you!