Setting ACLs from non-domain computer

Mont Rothstein <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
I am using System.Security.AccessControl to set ACLs.

I am also using LogonUser() to gain access to a share from a computer that
is not on the domain (using LOGON32_LOGON_NEW_CREDENTIALS).

What I can't figure out is if there is anyway to set ACLs on
directories/files for groups from a non-domain computer.  If I try and
simply pass in "domainname\groupname" to FileSystemAccessRule() I get an
exception when I go to modify the access rule (this works fine from a
computer on the domain).

It seems it might work if I could get a WindowsIdentity for the group, but I
don't know how to do this or even if it can be done (is there such a thing
as a WindowsIdentity for a group?).

Any help or pointers is appreciated.

Thanks,
-Mont

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.