Hi, I'm trying to manage a remote NTFS share, and figured I'd start by dumping the ACLs using Win32::Perms. So I wrote the following code:

And when I run it, the information for the DACL displays OK, except for two groups local to the server with Win2K permissions (which is a netapp filer, but that shouldn't matter). Although there are lines for these groups (see output below), there is no account name. I confirmed using SetACL (setacl.sourceforge.net) and the Windows GUI (i.e. right click on folder, properties, select Permissions tab) that these do in fact correspond with real groups.

Descretionary ACL: Index Account Mask Type F +lag ----- ---------------------------------------- ---------- ---------- - +--------- <snip> 5 0x001301bf Allow 0 +x00000003 6 0x001200a9 Allow 0 +x00000003 <snip>

Is there a flag I have to set or something? I read the manpage at http://www.roth.net/perl/packages/#Win32-Perms, and poked around this site, and couldn't find a problem with this module not recognizing a local group. Nothing from google searches, either. I thought about using the ocx file that comes with setacl (allows for integration with perl), as there isn't much documentation on it, and the ocx file was just posted recently. As a result, I'm leery of using it for a production server. I was under the impression that Win32::Perms is more established, and was hoping to use that.


In reply to Win32::Perms doesn't get local groups by bowei_99

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.