Re: CGI execute permissions

From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 07/30/04


Date: Fri, 30 Jul 2004 16:41:03 GMT

On Fri, 30 Jul 2004 06:21:03 -0700, "Britt Tabor" <Britt
Tabor@discussions.microsoft.com> wrote:

>I have a perl script that needs to query the registry (reg.exe QUERY) and return the value to the webpage. The script runs fine from the command line but when run from the webpage it tells me access denied. I do a lot of linux bash stuff and there is a sudo command and I know windows has a runas but it requires you to type in a password which can't be done from web. So how do I give the perl script permission to READ only, the registry?

It's not the Perl script, it's the account the Perl script is running
under. In the case of an anonymous web user, this is the Anonymous
account, normally IUSR_{MachineName}. That account has to have access
to the key in the registry, and you can set that access in RegEdit.
Check a Perl group to see how to run a script as a different user, if
it's possible in your case.

Jeff



Relevant Pages

  • Perl Question
    ... I have a perl script that has this in it: ... Problem is that my server requires authentication to send messages. ... add my account name and password to this so that messages can be sent? ...
    (comp.lang.perl.misc)
  • Perl Question
    ... I have a perl script that has this in it: ... Problem is that my server requires authentication to send messages. ... add my account name and password to this so that messages can be sent? ...
    (comp.lang.perl)
  • Re: My Complaint about Marc V Mulay
    ... Well it was not a perl script. ... incontrovertible evidence provided by a set of people ... who have suffered immensely on account of" followed ... "last drop of blood from our overworked, ...
    (alt.guitar.amps)
  • RE: Hosting multiple sites/ASP.NET security
    ... I spent several months on a Microsoft project that used ASP.NET to ... develop a new ecommerce web site. ... level (the ASP.NET account), ... of the problems with the ASP.NET anonymous web user account, ...
    (Focus-Microsoft)