You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Jason A. Dour" <ja...@bcc.louisville.edu> on 1997/01/31 14:49:28 UTC

BUG: suEXEC problem: QUERY_STRING not set (fwd)

-----BEGIN PGP SIGNED MESSAGE-----

Acked.  This confirms a enivron** error for at least two platforms now.
Randy, how is your research going?

Jason
# Jason A. Dour <ja...@bcc.louisville.edu>                            1101
# Programmer Analyst II; Department of Radiation Oncology; Univ. of Lou.
# Finger for URLs, PGP public key, geek code, PJ Harvey info, et cetera.

- ---------- Forwarded message ----------
Date: Thu, 30 Jan 1997 11:22:32 -0700
From: Ian Duplisse <du...@rentwks1.golden.csc.com>
Newsgroups: comp.infosystems.www.servers.unix
Subject: suEXEC problem: QUERY_STRING not set

Using Apache 1.2b6 on AIX 3.2.5.1, I have a user running a CGI
shell script that has whoami and set commands in it.  When run
without suEXEC installed, the whoami is that of the HTTPD_USER
(as expected) and the set shows such values as SERVER_SOFTWARE
and SERVER_NAME.

After installing suEXEC per the instructions, starting httpd
indicates "Configuring Apache for use with suexec wrapper."
(as expected) and the whoami returns the user's name, not
www (again as expected).

However, NONE OF THE ENVIRONMENT VARIABLES ARE SET!!!  This includes
SERVER_NAME, QUERY_STRING, etc.  So while suEXEC spawns the CGI
script as the correct user, none of the supplied info is passed
in.  Without that information, there is no point having a CGI script.

Does anyone know what is going on?

Thanks in advance,
Ian Duplisse
Computer Sciences Corporation

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMvH4apo1JaC71RLxAQFyXQP/W+3uB5CVzJgYJBY3MEDOPwbOITvXvHG9
aIrQ1o8nbgDFz1xrk1WVSN6K/z/QJYuDTHkvb5jZzzkSKeyDQCIkPXPxhiBEWNcT
Tlti9Wn/sgihH/d4T9MqQqrU5tnNDRNCfqE7LkmbJckkFf8wlcjH67YJa7bo4bFY
x3rFvguLTXg=
=baVl
-----END PGP SIGNATURE-----


Re: BUG: suEXEC problem: QUERY_STRING not set (fwd)

Posted by Marc Slemko <ma...@znep.com>.
On Fri, 31 Jan 1997, Jason A. Dour wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Acked.  This confirms a enivron** error for at least two platforms now.
> Randy, how is your research going?

See PR#142.

(remove the free(environ)).

> 
> Jason
> # Jason A. Dour <ja...@bcc.louisville.edu>                            1101
> # Programmer Analyst II; Department of Radiation Oncology; Univ. of Lou.
> # Finger for URLs, PGP public key, geek code, PJ Harvey info, et cetera.
> 
> - ---------- Forwarded message ----------
> Date: Thu, 30 Jan 1997 11:22:32 -0700
> From: Ian Duplisse <du...@rentwks1.golden.csc.com>
> Newsgroups: comp.infosystems.www.servers.unix
> Subject: suEXEC problem: QUERY_STRING not set
> 
> Using Apache 1.2b6 on AIX 3.2.5.1, I have a user running a CGI
> shell script that has whoami and set commands in it.  When run
> without suEXEC installed, the whoami is that of the HTTPD_USER
> (as expected) and the set shows such values as SERVER_SOFTWARE
> and SERVER_NAME.
> 
> After installing suEXEC per the instructions, starting httpd
> indicates "Configuring Apache for use with suexec wrapper."
> (as expected) and the whoami returns the user's name, not
> www (again as expected).
> 
> However, NONE OF THE ENVIRONMENT VARIABLES ARE SET!!!  This includes
> SERVER_NAME, QUERY_STRING, etc.  So while suEXEC spawns the CGI
> script as the correct user, none of the supplied info is passed
> in.  Without that information, there is no point having a CGI script.
> 
> Does anyone know what is going on?
> 
> Thanks in advance,
> Ian Duplisse
> Computer Sciences Corporation
> 
> -----BEGIN PGP SIGNATURE-----
> Version: 2.6.2
> 
> iQCVAwUBMvH4apo1JaC71RLxAQFyXQP/W+3uB5CVzJgYJBY3MEDOPwbOITvXvHG9
> aIrQ1o8nbgDFz1xrk1WVSN6K/z/QJYuDTHkvb5jZzzkSKeyDQCIkPXPxhiBEWNcT
> Tlti9Wn/sgihH/d4T9MqQqrU5tnNDRNCfqE7LkmbJckkFf8wlcjH67YJa7bo4bFY
> x3rFvguLTXg=
> =baVl
> -----END PGP SIGNATURE-----
>