Hi. I am using a WinNT 4.0 workstation with PWS 3.0 and have a couple of
situations that  I am hoping someone out there can help me
understand/resolve.

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?

Another situation I have is this: I have a script that uses DBI to access a
database I am working with.  The script works fine from the command prompt,
but I want to use a CGI form to enter database search parameters. The target
of the CGI form is a script that processes the entered parameters and then
does a system call to run the script that accesses the database.  When I try
this I get an error telling me that the database script cannot connect to my
data source (ODBC source if that matters).  I assume this is a permissions
problem as well, but dont know for sure.

I appreciate any help anyone has!

Thanks much,

Scott C. Wildenberg




_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to