>
> I need to run up an EmbPerl script as cgi so I can setuid root to allow
some
> of my processing to proceed.
>
> I can't run httpd as root. Actually running Perl as setuid is restrictive
> too, but I have a C wrapper to counteract this.
>
> Do you know of any work-arounds I could consider instead?
>
> Or if you like, I am available to get the CGI stuff working for EmbPerl.
I
> suspect that this may be minorly tricky. The embpcgi.pl script really
just
> wraps the HTML::Embperl::Execute function doesn't it.
>
...but Execute behave a little different when running as CGI, because you
don't have the mod_perl enviroment available and can't use the Apache API
directly, but basicly you are right.
My current development version works as CGI, the error handling is not
always correct, that must be done before the release of 2.0b4. Also the
development version requires Apache::SessionX for session handling and make
test will fail when it isn't installed (this also will change in the before
the release of the next beta)
You can get the developemnt version if you do a checkout from the CVS from
the branch Embperl2c, e.g.
cvs co -r Embperl2c embperl
see CVS.pod for more details.
Considering your problem is that you want to run as root, I didn't would use
Embperl in this situation. Embperl has too many options and by
misconfiguration you may run into security problems. Instead I would create
a small script which does all the tasks that needs root and nothing more.
This script could be called from an Embperl page, which runs as
non-priveliged user. This way would be much more secure.
Gerald
P.S. Please always reply to the list also, because more people may be
interested in this subject.
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]