Security descriptors

A

Andy

Hello,

Does anybody know if there is a possibility to change permissions of a
shared directory in windows using perl?

There are some modules like Win32::FileSecurity, but they only change
permissions for files/directory within the local file system, but I
found no modules to change the permissions for the share.

I know, the permissions for the share are saved as security
descriptors in REGISTRY:{HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares\security}

But this key is saved as a very long bitmask, and I'm still unable to
convert this bitmask into a readable string, and thus I'm also unable
to change these permissions.

Is there a module that can convert this bitmask or that can convert
any settings into this bitmask?

Some help would be great here,
thanks, andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top