471,046 Members | 1,221 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,046 software developers and data experts.

Creating a FileSystemSecurityRule for CREATOR OWNER


I am trying to programatically add a FileSystemAccessRule for CREATOR
OWNER to the filesystemsecurity obj of a folder whose creator and owner
is a user account say 'SomeUser'. The rule gets created and added
without errors. After I have set the security descriptor I notice that
2 ACEs have been added. One for CREATOR OWNER with the specified rights
and apply to set to 'Subfolder and files' and another for
'Administrators' with the specified rights and apply to set to 'This
folder only'. I was expecting the 2nd ACE to be set for 'SomeUser' and
not 'Administrators'. If I do a FileSystemSecurity.GetOwner i get
Then why is the 2nd rule being set for 'Administrators'?

My code is executed with Administrator/SYSTEM privileges.

Does some one know why the CREATOR OWNER rule is behaving like this and
how to get the expected results?


Jun 16 '06 #1
0 1306

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Dim St Thomas | last post: by
6 posts views Thread by kai rosenthal | last post: by
3 posts views Thread by alan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.