[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-admin
Subject: Re: Win32:Perms Set permissions on network shares in IIS script
From: Hack =?iso-8859-1?Q?Kampbj=F8rn?= <hack () person ! dk>
Date: 1999-12-19 16:50:28
[Download RAW message or body]
You don't say otherwise so I suspect that you have not logging for your
script. So it will be running under the IUSR_<user> which have no
network access. Don't give it that. Instead remove everyone and the
IUSR_<user> from the scripts ACL. That way IIS will log you in with the
user you want.
Stefan Zielinski wrote:
>
> Hi
>
> I wrote a script which runs on the IIS using the Win32::Perms module to set
> permissions on Network shares. The script does set the permissions
> correctly, it always sets access denied instead of full access. When I run
> the script without IIS on my DOS-Box the permissions are right.
> Can anyone help me?
>
> Stefan
>
> #Set Permissions on Share
>
> $Share = new Win32::Perms( "\\\\$NodeName\\$Netname", PERM_TYPE_SHARE) ||
> print "$User can not set permissions on $NetName";
>
> $Share->Remove(-1);
>
> $Share->Allow("user1",FULL,CONTAINER);
>
> $Share->Allow("group1",FULL,CONTAINER);
>
> $Share->Allow("administrators",FULL,CONTAINER);
>
> $Share->Set();
>
> $Share->Dump;
>
--
Med venlig hilsen
Hack Kampbjørn hack@intra-action.dk
intra-action a/s +45 4547 4514
---
You are currently subscribed to perl-win32-admin as: [perl-win32-admin@progressive-comp.com]
To unsubscribe, forward this message to
leave-perl-win32-admin-90393O@lyris.activestate.com
For non-automated Mailing List support, send email to
ListHelp@ActiveState.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic