httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Punt, Ryan" <Ryan.P...@sencore.com>
Subject RE: [users@httpd] cgi spawning process to update registry
Date Mon, 06 Oct 2003 16:57:04 GMT
I was able to read registry values from CGI-space by using
Win32::TieRegistry (a Roth module, IIRC).  Nothing terribly complex.

use Win32::TieRegistry;
my ($version, $appvers, $libvers);
$libvers = $Registry->{"LMachine/Software/company/product/Version/lib/"}
      || die "Can't display module versions: $^E\n";
foreach ( keys %$libvers ) { 
  $version = $_;
  $version =~ y/\// /;
  print qq[       <tr bgcolor="#ffffff">
  	     <td align="right"width="50%"><font size="4">$version</td>
	     <td>.........</td>
	     <td align="left" width="50%"><font
size="4">$libvers->{$_}</font></td>
       </tr>
]; 
}

I don't have registry-editing code in front of me right now.

-----Original Message-----
From: jonathan hudgins [mailto:jhudgins@thereinc.com] 
Sent: Monday, October 06, 2003 11:53 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi spawning process to update registry


On Fri, 3 Oct 2003, Brian Dessent wrote:

> jonathan hudgins wrote:
> >
> > I have been trying to configure Apache so that it can be used as an
interface
> > to do machine local stuff.  As such I am unconcerned about security and
am
> > only allowing contact as localhost.
... but ...
> > Makecert fails because I do not have permissions to update
> > the registry.
>
> It all depends on what user context the process is running as.  Did you
> start Apache as a service?

Actually I started apache from the command-line with args
"-f httpd.conf -X".  This is the same command-line that I
run my script directly.  Again, my script updates the registry
with no problem when I run it directly from the command-line
*but* fails to update the registry when I run it through
the apache that I started from my command-line.


> Is it running as SYSTEM or did you create an
> account for it?  Whatever user accout it's running as will need rights
> to the registry.

I have looked at Apache in PView.exe (Process Explode, a
program included with MSDEV) and the user is myself -- and
I have full admin permissions.

I think this pretty much isolates the permission issue somewhere
inside Apache.

Thanks for helping,

Jonathan

> You can check this by running REGEDT32, selecting a
> hive or branch (most inherit from the root HKEY_LOCAL_MACHINE) and then
> selecting Security|Permissions from the menu.  You should then make sure
> that the user that Apache is running as has write access to the keys
> you're trying to change.
>
> Brian
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message