ACL Configuration from Assembly

Manipulating the Access Control List from .NET Applications is not a common need. But still based on the Business requirements we may be in a situation to manipulate ACL from .NET Framework applicatio

ITPro Today

January 30, 2005

1 Min Read
ITPro Today logo

Manipulating the Access Control List from .NET Applications is not a common need. But still based on the Business requirements we may be in a situation to manipulate ACL from .NET Framework applications. ACL manipulation can be implemented by 2 ways. They are

 

  1. Invoking Command Line tools from Application.

  2. Constructing a Wrapper around Win32 API calls.

 

Preffered way of configuring the ACLs from within a .NET Framework is to call the Cacls or XCacls command line tool directly.

 

Analyze the below code sample mentioned below. Using the Process class in the System.Diagonistics namespace.

Read more about:

Microsoft
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like