| 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
|