Re: CGI execute permissions
From: Jeff Cochran (jeff.nospam_at_zina.com)
Date: 07/30/04
- Next message: Ali AYHAN: "IIS SSL Problem(DNS Server Error)"
- Previous message: Gregory: "Re: Limit access by referrer?"
- In reply to: Britt Tabor: "CGI execute permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Ali AYHAN: "IIS SSL Problem(DNS Server Error)"
- Previous message: Gregory: "Re: Limit access by referrer?"
- In reply to: Britt Tabor: "CGI execute permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|