.NET Core - directory permissions Linux
问题 In my Unit Test project for .NET Core I'm trying to create a folder and then limit access permissions. So far I implemented Windows version of this code: DirectoryInfo dirInfo = Directory.CreateDirectory(DriveManager.LogicalDrive + ":\\testDir"); DirectorySecurity dirSecurity = new DirectorySecurity(dirInfo.FullName, AccessControlSections.All); var securityId = System.Security.Principal.WindowsIdentity.GetCurrent().User; FileSystemAccessRule rule = new FileSystemAccessRule(securityId,