I am using Win32::Perms and when you do a "Dump" of permissions of an object
(file/dir/share/etc), it populates a @List with hash references, each of the
hash references being an ACE of some type.

Ok, I have written a program to look through NT directories and compare
permissions, showing a directory tree and showing me which directories have
different permissions from their parents.

Problem is, I am currently just doing 2 Dumps, 1 from each directory, and
doing an

 if( @List1 eq @List2 )

to decided if the permissions are the same.  Now while this sort of works,
it is really checking the whole ACL which does not only contain DACL ACE's.
In particular, the "Entry => Owner" ACE is messing things up.  I may have a
directory with exactly the same permissions, but since the owner is
different, it is showing up in my program when I really don't want it to.
(True, ownership is important because that user can do anything they want,
but for this purpose I don't want to see it).  So... my question is, what is
the best way to simply prune my Array of Hash references to take out the
Owner ACE?  I have noticed that the Owner seems to be the last Hash ref, but
I don't want to count on that.  Or can I?

Thanks for your help.

-Mike

__________________________________________
Michael Marziani
Systems Administrator - OnFiber Communications
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to