blackadder has asked for the wisdom of the Perl Monks concerning the following question:

Hi All

In NT explorer, if I wanted to assign read permission - which is (RX)(RX) i.e. read and execute - to Mr Jo Bloggs on the directory c:/temp then I would do something like this:
Use Win32::Perms; My $path = 'c:/temp'; My $dir = new Win32::Perms($path) || die "\n$E, $^E\n"; $dir->Add('MYDOMAIN\BloggsJo', READ|EXECUTE, ACCESS_ALLOWED_ACE_TYPE, +OBJECT_INHERIT_ACE | CONTAINER_INHERIT_ACE);
If I wanted the Change permission then I would do this:
$dir->Add('MYDOMAIN\BloggsJo', CHANGE|CHANGE, ACCESS_ALLOWED_ACE_TYPE, + OBJECT_INHERIT_ACE | CONTAINER_INHERIT_ACE);
And if I wanted Full permission, then I change the CHANGE|CHANGE to FULL|FULL. All this works fine, however If I wanted to assign the List permission which is (RX)(Not Specific) or the Add&Read permission - which is (RWX)(RX). Then can someone please enlighten me on how can I go about implementing this?

Many Thanks in Advance.

Edited: ~Mon Sep 16 16:35:15 2002 (GMT) by footpad: Replaced non-standard quoting characters with standard variants.