So I've got some code that dynamically creates group names based on branch paths which are about to be created, then creates the branch with the group-for-sharing set with the new group - great - works nice.
Unfortunately, it looks like all branch directories inherit ACLs from their parent branch directory - so if I create a parent-branch "foo" shared-by "all_users" and then create a child branch "bar" shared-by "bar_users" - the ACLs on the foo/bar includes *both* "bar_users" *and* "all_users".
Before I go re-invent the wheel, or download and try to install a variety of CPAN modules which *might* do what I want (I saw one, but it didn't seem to be a proplerly packaged module) - I'm curious what anyone else has done with regard to *explicitly* setting the ACLs for a branch (directory) on Windows?
I'm contemplating calling out to cacls - but it seems klunky and I'd have to parse the output to explicitly *remove* entries from the ACL.
I'd essentially like a simple utility (command-line or Perl module function) where I could do something like: SetAccess("Y:/default/main/foo/bar", [$branch_owner, $branch_group]);
Pointers anyone?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com