[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [RaQ4] Running a CGI as a UserName not httpd



At 03:46 PM 29/07/02 -0400, you wrote:
> One of my clients is having trouble getting his CGI to work
> properly... it
> seems that because the cgi is running as httpd it cannot read
> the data
> files as they are owned by user:site#

If the user uploaded the CGI via FTP as that username, it should run as
that user. (I even had a small problem of a script that sent mail
sending the mail as user@xxxxxxxxxxxxxxxxxxxx instead of the
Return-path: specified in the script).

If it's a FrontPage site, if they turn the CGI-BIN locally into a
subweb, then when they publish the main web only, the CGI-BIN shouldn't
be touched.

Is it CGI-Wrap that forces the script to run under the user and not httpd?

if so... would this line in my httpd.conf effectively disable cgi-wrap?

        ScriptAlias /cgi/ /home/sites/site2/www/cgi/

This site has a *lot* of scripts that are named without the .cgi extention thus to get them running, we enabled execution of anything in the cgi directory.

Assuming I am on the right track, how can I enable cgi-wrap for files in this directory?

Thanks!
- Bill






---------------------------------
William J.A. Brillinger
Precision Design Co.

E-Mail:   mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net