Change / Check permissions (Read, Write,...) for the NETWORK SERVICE account with C#
How can I change / check the permissions (Read, Write,...) for a specific folder for the NETWORK SERVICE account with 开发者_如何学GoC# porgrammatically ?
There's no generic "find all permissions that this user has on all objects on this filesystem/system/domain function".
For objects where the ACLs are exposed to .Net framework, they typically expose a "GetAccessControl()" method, from which you can enumerate the AccessRules (via "GetAccessRules()"), and find those rules which apply to NETWORK SERVICE
精彩评论