----- Original Message -----
From: "Scott Wildenberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 01, 2001 22:18
Subject: Permission settings
> First, I have a couple of CGI scripts that I want to make available to
> administrators only. I set security on them so that they are executable
by
> administrators only, and when I run it from my web browser, I am prompted
> for my username and password, and the script works fine-but only if I set
> permissions on my perl directory to make perl executable by admins only.
> Nobody else can use perl then. So if I change the perl permissions so
that
> everyone can execute I am not prompted for my username/password, but the
> anonymous user cannot access the admin script so it fails. What do I need
> to do to resolve this?? Is there some way I can send (securely) a
username
> and password to a script that uses Win32::AdminMisc::LogonAsUser to logon
> and then run the admin script? Or some other option?
>
What you're missing is that the scripts themselves don't get executed, where
NT is concerned. They get read by your perl interpreter which runs them.
Thus, the only thing getting executed is your perl interprete (and some
Texans).
I believe setting the permissions for the admin-only scripts so that _only_
admins can _read_ them will solve the problem.
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web