G
Gregory K
My C# program creates a file while running under Administrator account. I
need this file to be available to any user for read/write. It appears that
the way to do it is to create an access rule and use File.SetAccessControl to
add it. My question is how to to create an access rule for any user.
I tried
FileSystemAccessRule rl = new FileSystemAccessRule(si,
FileSystemRights.FullControl, AccessControlType.Allow);
but I cannot create SecurityIdentifier si that will include any user.
Can somebody help?
SecurityIdentifier si = new
SecurityIdentifier( WellKnownSidType.AccountDomainUsersSid,
);
need this file to be available to any user for read/write. It appears that
the way to do it is to create an access rule and use File.SetAccessControl to
add it. My question is how to to create an access rule for any user.
I tried
FileSystemAccessRule rl = new FileSystemAccessRule(si,
FileSystemRights.FullControl, AccessControlType.Allow);
but I cannot create SecurityIdentifier si that will include any user.
Can somebody help?
SecurityIdentifier si = new
SecurityIdentifier( WellKnownSidType.AccountDomainUsersSid,
);