Re: Setting ACL on directory with files
From: Amit Rahul [MS] (arahul_at_online.microsoft.com)
Date: 03/24/04
- Next message: Moyed Haddadin: "Windows 2003 Login Problem"
- Previous message: Amit Rahul [MS]: "Re: Impersonating Local System Account"
- In reply to: Michał Januszczyk: "Setting ACL on directory with files"
- Next in thread: Michał Januszczyk: "Re: Setting ACL on directory with files"
- Reply: Michał Januszczyk: "Re: Setting ACL on directory with files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 23 Mar 2004 22:53:34 -0800
Which API are you using to set ACE on the folders? If you use
SetSecurityInfo() on Windows XP/2000 for setting the objects DACL/SACL, the
system propagates all inheritable ACEs to existing child objects. Check out
MSDN (http://msdn.microsoft.com) for more information on using this API.
-- Thanks, Amit Rahul [MS] This posting is provided "AS IS" with no warranties, and confers no rights. "Michal Januszczyk" <anonymous@discussions.microsoft.com> wrote in message news:20B0E5BF-A410-4B9A-B59E-17295D002CDC@microsoft.com... > I have the following problem: > > I try to set some ACEs on a folder with files. The ACEs are set properly. > The ACEs define flags CONTAINER_INHERIT_ACE and OBJECT_INHERIT_ACE so that > access to files inside the folders would be affected by the parent folder's ACEs. > > If new file is created in the folder, its ACEs do reflect settings set > on the parent containers. However, the files that had existed before I > set the permissions for the folder do not reflect the parents settings. > > How can I force existing elements of the folders to aquire ACEs of parents' > (of course only these that are applicable). > > I noticed, that when I set permission for some folder with windows explorer, > it automatically sets ACEs on recursive subfolders and contained files. > (I mean that it not only makes changes to the super folder ACL but also > to ACLs of subfolders and files, that are affected by the folder settings) > > Should I in my program do this recursively for each sub directory/file ? > > Thanks > Michal Januszczyk
- Next message: Moyed Haddadin: "Windows 2003 Login Problem"
- Previous message: Amit Rahul [MS]: "Re: Impersonating Local System Account"
- In reply to: Michał Januszczyk: "Setting ACL on directory with files"
- Next in thread: Michał Januszczyk: "Re: Setting ACL on directory with files"
- Reply: Michał Januszczyk: "Re: Setting ACL on directory with files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
Loading