Well, at this point I just have to assume that the module is broken.  I might 
email the module creator just to see if he can shed some light on this.  I have 
simplified my anon sub to this:
 
$acl->deleteAces( sub {
  my $strsid = Win32::Security::SID::ConvertSidToStringSid($_->sid());
  return ($strsid =~ /[myRegEx]/);
    } );
 
It doesn't get much simpler than that.  If anyone has done work with this 
module and has gotten deleteAces to work, please provide me some code.  This is 
driving me crazy.
 
AG
 

________________________________

From: Timothy Johnson [mailto:[EMAIL PROTECTED]
Sent: Tue 7/18/2006 3:30 PM
To: Giuoco, Aaron; perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Security deleteAces method question



Sorry, I guess I misunderstood.  I've been really busy lately, but I
might have a chance to look closer tonight.  Maybe a second set of eyes
will turn something up.

-----Original Message-----
From: Giuoco, Aaron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 1:01 PM
To: Timothy Johnson; perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Security deleteAces method question

Yes, I know that.  I am using File::Find to recursively traverse the
directory tree.  My script is touching every file and folder, it's just
not deleting the ACEs for any of the files/folders it touches.

AG


________________________________

From: Timothy Johnson [mailto:[EMAIL PROTECTED]
Sent: Tue 7/18/2006 2:23 PM
To: Giuoco, Aaron; perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Security deleteAces method question




ACLs don't automatically update when their parent is updated unless
certain APIs are used (see
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q266461&; and
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauth
z/security/setsecurityinfo.asp).

If you want to propagate the permissions you'll have to either find a
way to make sure you're using the SetSecurityInfo API or propagate them
yourself down the tree.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Giuoco, Aaron
Sent: Tuesday, July 18, 2006 7:01 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: RE: Win32::Security deleteAces method question

Well, I still don't know what I am doing wrong.  I have stripped my anon
sub down to the basics and it's still not deleting the ACEs.  Here is my
modified anon sub:

<snip>

My test folder isn't inheriting its ACL.  I do have admin right on the
test folder and can modify it's ACL manually.  Any ideas as to why this
is not working?

<snip>






_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to