setting a file's group access permissions

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Having trouble finding information on this... I need to be able to grant and
revoke read/write permission to files for specific user groups on the
network. Never really looked at this before so I have no idea how to even
get an enumeration of users or groups from a DC.

Paul
 
Hello Paul,

To enumerate or get details on users and groups from a DC, you use
System.DirectoryServices namespace types. There are numorous
samples/examples a Google search can get for you.

For access control list (ACL) related operations, there is no inbuilt way in
..NET 1.1 (but check out
http://www.gotdotnet.com/Community/...mpleGuid=e6098575-dda0-48b8-9abf-e0705af065d9).
..NET 2.0 however has support for ACL.

Hope this helps?

Having trouble finding information on this... I need to be able to grant and
revoke read/write permission to files for specific user groups on the
network. Never really looked at this before so I have no idea how to even
get an enumeration of users or groups from a DC.

Paul
 
Hmmm. I'm a little surprised that isn't built in.

I see with the project you suggest that it's possible to get users and
groups from the DC, but it doesn't look like it provides a way to associate
these with file access and permissions.

Maybe I'll have to wait for Whidbey then.

Thanks,
Paul
 
Back
Top