I'm just getting into this w2k security so this is
a 101.

I tried your code for a single directory and got this.
This seems to be more a permissions question. Look
at the mask output below.
(I modified your %permissions build to:
  $loop++;
  $permissions{$aceName . "__$loop"} = {access => $access, mask => \@mask};
and added a flag view.
)

I get the same listing for allow and deny.
Does that look right? 
Thanks 

ACE
Owner of "\\y-fps3\Home\Star_hub" is "RAYO\2007617" with "3" aces.
Group of "\\y-fps3\Home\Star_hub" is "" with "3" aces.

   ACE:
    Ace name:    RAYO\2007617
    Ace access:  Denied
    Ace sid:     S-1-5-21--1289165036-66035279--551693756-12389
    Ace domain:  RAYO
    Ace entry:   DACL
    Ace account: DACL
    Ace type:    2
    flag:        OBJECT_INHERIT_ACE
    flag:        CONTAINER_INHERIT_ACE

   ACE:
    Ace name:    RAYO\2007617
    Ace access:  Allowed
    Ace sid:     S-1-5-21--1289165036-66035279--551693756-12389
    Ace domain:  RAYO
    Ace entry:   DACL
    Ace account: DACL
    Ace type:    1
    flag:        OBJECT_INHERIT_ACE
    flag:        CONTAINER_INHERIT_ACE

   ACE:
    Ace name:    RAYO\OUoperators
    Ace access:  Allowed
    Ace sid:     S-1-5-21--1289165036-66035279--551693756-10260
    Ace domain:  RAYO
    Ace entry:   DACL
    Ace account: DACL
    Ace type:    1
    flag:        OBJECT_INHERIT_ACE
    flag:        CONTAINER_INHERIT_ACE

   PERMISSIONS mask

    Group/User: RAYO\OUoperators__3
    Permissions: (Allowed)
                   STANDARD_RIGHTS_ALL
                   FILE_READ_EA
                   FILE_WRITE_EA
                   FILE_EXECUTE
                   FILE_DELETE_CHILD
                   FILE_READ_ATTRIBUTES
                   FILE_WRITE_ATTRIBUTES

    Group/User: RAYO\2007617__1
    Permissions: (Denied)
                   STANDARD_RIGHTS_ALL
                   FILE_READ_EA
                   FILE_WRITE_EA
                   FILE_EXECUTE
                   FILE_DELETE_CHILD
                   FILE_READ_ATTRIBUTES
                   FILE_WRITE_ATTRIBUTES

    Group/User: RAYO\2007617__2
    Permissions: (Allowed)
                   STANDARD_RIGHTS_ALL
                   FILE_READ_EA
                   FILE_WRITE_EA
                   FILE_EXECUTE
                   FILE_DELETE_CHILD
                   FILE_READ_ATTRIBUTES
                   FILE_WRITE_ATTRIBUTES

In reply to Re: Re: Re: Win32::Perms and Network Shares by ballJoint
in thread Win32::Perms and Network Shares by thoughtless

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.