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 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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish