blackadder has asked for the wisdom of the Perl Monks concerning the following question:
Use Win32::Perms; sub AddGroupToDir { my ($group, $dir)=@_; my $perms = new Win32::Perms($dir) || die "\n$^E\n"; my $counter = $perms->Get(\ my @list); print "\nAccount '$group'\t Path " . $perms->Path() . "\n"; $perms->Add("$group", FULL|FULL, ACCESS_ALLOWED_ACE_TYPE, OBJECT_I +NHERIT_ACE | CONTAINER_INHERIT_ACE); if ($perms->Set()) { Win32::MsgBox("Account: '$group' was garanted Full ACE permiss +ion to: '". $perms->Path() . "'",0x00000000|0x00000040|0x00000000,"Op +eration Successful"); } else { Win32::MsgBox("This particular operation has failed\n\n***PLEA +SE CONTACT THE ADMINISTRATOR***\n",0x00000000|0x00000040|0x00000000," +Operation Failure"); } $perms->Close(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perms under WinNT4
by Necos (Friar) on Aug 12, 2002 at 20:36 UTC | |
|
Re: Perms under WinNT4
by BrowserUk (Patriarch) on Aug 12, 2002 at 18:09 UTC | |
by blackadder (Hermit) on Aug 14, 2002 at 15:33 UTC |