2
I am trying to create a folder and assign 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 that folder for any domain login. How should I leave the @Dominio\usuarios
to do this?
Grateful!
See help: https://stackoverflow.com/a/5398398/7762411 (in English)
– Grupo CDS Informática
I had tried the tip of this topic, but apparently all users would have access, and I would like to restrict to one domain :/
– Csorgo
Pass domain user Everyone
– Grupo CDS Informática