Silly Question Not in the FAQ

2001-02-07 Thread Stef Telford

Hello, 
Me again (sorry about this) and this is probably a silly question
but, each of my Apache children load in CGI.pm at startup time (via the
startup.pl method). The only problem is that the apache-error log grows 
due to the CGI.pm startup message

 (offline mode: enter name=value pairs on standard input).

Now, how do i get these messages removed or not going to my 
logfile ? I have the latest CGI.pm from CPAN,along with perl 5.005 patch
3,
mod_perl 1.24 and Apache 1.3.17 on a FreeBSD box. 

Its not 'mission critical' (obviously) but its jst one of those little
'niggling' things that i would like to know how to 'scratch'. Thank you
as
always.

Stefs



Silly Question

2000-04-07 Thread Vijay



Hello,

We recently bought a new Raq3 server. We have 
developed a script to add users directly from the web interface. IT is bombing 
out as the script should be run as 'root'.

I want to know if the script can be set with setuid 
as root for execution.

Thanks for any help.

VIjay


Re: Silly Question

2000-04-07 Thread Eric L. Brine


 I want to know if the script can be set with setuid as root for
 execution.

Since you asked this on this list, I will assume the script is a mod_perl
script.  Unless the whole web server runs as root, I don't think the
script can run as root.

Here's what you can do instead. Have the mod_perl script add the info
needed to a to-do list. Setup a root cron job to periodically check if
there is anything in the to-do list. If there is, process the entry. Of
course, that means the changes don't take effect immidiately.

Another alternative is to run the script as a .cgi instead of as a
mod_perl script. CGI scripts can run as root without running the server as
root.

ELB

--
Eric L. Brine  |  Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED]  |  Do you always hit the nail on the thumb?
ICQ# 4629314   |  An optimist thinks thorn bushes have roses.