DirectorySecurity not setting permissions correctly!
<p>I have a C# code which creates a folder and sets some permissions on it. Here is hte code sample:</p>

<p>static void Main(string[] args){</p>

<pre><code>        Directory.CreateDirectory("C:\\vk07");

        DirectorySecurity dirSec = Directory.GetAccessControl("C:\\vk07");

        dirSec.AddAccessRule(new FileSystemAccessRule("INTRANET\\fGLBChorusUsers", FileSystemRights.ReadAndExecute, AccessControlType.Allow));

        Directory.SetAccessControl("C:\\vk07", dirSec);
</code></pre>

<p>}</p>

<p>When I check the permissions set on the folder created above, instead of having Read and Modify (which is what I ahve set in the code), it shows only "Special Permissions" as checked.</p>

<p>Please can some one help me with this? I am new to ACL, so dont understand it very well.</p>

<p>Many thanks
Vikram</p>
