From: Joe W. <jo...@gm...> - 2012-02-25 17:05:07
|
Hi Andrzej, >>>> I don't think there are "direct" security management tasks but you can always run an XQuery script >>>> with an ant task that changes the permissions and groups of any collections and resources. >>> >>> That's a bit awkward. I think I'll write some ANT tasks to do this directly. > > I checked in the code to Trunk yesterday. > > Still have to update the documentation of the ANT task through. But in a nutshell, you can now > specify permissions="rwxr--r--" for the Create and Store ANT tasks for collections/resources > respectively. Thank you so much! I just tested store and create using the permissions attribute, and it worked perfectly. I would be happy to add documentation to the ant-tasks.xml file to include this new "permissions" attribute for the "store" and "create" tasks. Just let me know. I can't see any other tasks that need this "permissions" attribute, can you? Also, I noticed one other area in the ant tasks documentation that I assume needs to be updated (no pun intended): The chmod task (http://exist-db.org/exist/ant-tasks.xml#d14366e1667) continues to refer to "update" permissions instead of "execute" permissions. We should make sure that both the updated ant tasks and the updated documentation is committed to stable/exist-2.0.x. Again, many thanks, Joe |