in reply to Set file permissions using Perl in Windows?

Win32::Security::ACL comes with two scripts: PermDump.pl and PermChg.pl.

PermDump.pl will output a CSV file with all permission data of your files and PermChg.pl takes the same (format of) CSV file (suitably changed I assume) and applies the permissions in this CSV-file to your files.

It shouldn't be too difficult to find out how to implement your "System && Admin Group, no one else" writable scheme: just set the permissions for one file by hand (using the buttons in the security tab) and PermDump.pl the permissions for that file. Then apply what you found to the other files with PermChg.pl

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Set file permissions using Perl in Windows?
by wilsond (Scribe) on Jan 12, 2009 at 12:57 UTC
    If cacls.exe fails for me somehow (it's worked great so far in XP), I'll definitely give your recommendation a shot. Thanks for your input!