|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating a FileSystemSecurityRule for CREATOR OWNERI 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 'SomeUser' 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? Thanks, Roshan |
|||||||||||||||||||||||