Directory permission for the entire domain

Asked

Viewed 160 times

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!

  • 1

    See help: https://stackoverflow.com/a/5398398/7762411 (in English)

  • I had tried the tip of this topic, but apparently all users would have access, and I would like to restrict to one domain :/

  • Pass domain user Everyone

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.