in reply to Re: Perms Perms Perms
in thread Perms Perms Perms

OK, the hash technique seems to work,....(Thanks very much for this chaps)

Now, 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?

Thanks in Advance.
Regards