Hello fellow monks,
I need to dump the ACLs for Windows directories in the form of DACL bitmasks.
If I do it with Win32::FileSecurity it is very fast and all works well with one exception: the "deny" type of permissions are not dumped. If a user has only "deny" permissions, DACL bitmask is not even seen. If it has both "allow" and "deny" permissions the bitmask is the same as if it had only "allow" kind of permissions.
I have then tried with Win32::OLE. It works well but, besides requiring more complex code, it is extremely slow as compared to Win32::FileSecurity.
Is there a way to have the cake and eat it too (i.e. get full DACL info and fast), possibly without having to install extra modules (using ActiveState 5.8.8)?
Thanks for your suggestions...
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.