I’m using ActiveState Perl on Windows Server 2003.
I want to create a directory on a Windows NTFS partition and then grant a Windows NT security group read access to the folder. Is this possible in Perl? Would I have to use Windows NT commands or is there a Perl module to do it?
A small example would be much appreciated!
The standard way is to use the Win32::FileSecurity module:
Note that
Setwill overwrite the permissions for that directory. If you want to edit the existing permissions, you’d need toGetthem first: