IIS Server Security - CGI execute permissions

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > July 2004 > CGI execute permissions





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CGI execute permissions
Britt Tabor

2004-07-30, 7:52 am

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 su
do 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?
Jeff Cochran

2004-07-30, 5:51 pm

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 s

udo 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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com