Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
By the way, the "set" line that is remarked above works fine. However, it resets all permissions. I just want to add the Everyone permission. One last note. I tried Win32::Perms and got nowhere with it. No errors, it just didnt' work so I would rather use Win32::FileSecurity as I feel I am at least close with it.use Win32::FileSecurity qw(Set MakeMask); my $dir = 'c:/temp/test.txt'; #Set($dir, { 'Everyone' => MakeMask( qw( READ GENERIC_READ GENERIC_EXE +CUTE ) ) }); my %permissions; Win32::FileSecurity::Get($dir, \%permissions); $permissions{ 'Everyone' } = '1180095'; Win32::FileSecurity::Set($dir, \%permissions);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modifying NTFS File Permissions
by ikegami (Patriarch) on May 21, 2009 at 00:29 UTC | |
by Anonymous Monk on May 21, 2009 at 00:35 UTC | |
|
Re: Modifying NTFS File Permissions
by BrowserUk (Patriarch) on May 21, 2009 at 01:08 UTC | |
by Anonymous Monk on May 21, 2009 at 01:31 UTC | |
by BrowserUk (Patriarch) on May 21, 2009 at 02:01 UTC | |
by Anonymous Monk on May 21, 2009 at 13:10 UTC | |
by BrowserUk (Patriarch) on May 21, 2009 at 13:47 UTC | |
| |
by MidLifeXis (Monsignor) on May 21, 2009 at 13:17 UTC |