Mailing List Archive

[Bug 9038] - suexec is NOT being called by Apache 2.0.36
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9038>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9038

suexec is NOT being called by Apache 2.0.36





------- Additional Comments From abatko@cs.mcgill.ca 2002-05-17 21:03 -------
I've added the following line to suexec.c:
log_err("arg1: %s, arg2: %s, arg3: %s\n", argv[1], argv[2], argv[3]);

I get the following error from httpd-error.log:
[Fri May 17 15:58:48 2002] [error] [client 132.206.2.99] Premature end of script
headers: /usr/tmp/home/devil/public_html/cgi-bin/test.cgi, referer:
http://web/~devil/cgi-bin/

I get the following error from httpd-suexec.log:
[2002-05-17 16:05:51]: arg1: 666, arg2: 666, arg3: test.cgi
[2002-05-17 15:58:48]: uid: (666/devil) gid: (666/666) cmd: test.cgi
[2002-05-17 15:58:48]: command not in docroot
(/usr/tmp/home/devil/public_html/cgi-bin/test.cgi)


Are the arguments being passed correct ?
It's clear to see that ~ is nolonger part of the uid. The cgi script
works if I add the ~ manually by hardcoding it into the code with the
following line, just before the check to see if it is a ~userdir request.
target_uname="~666";


Something must be wrong in a place out of my jurisdiction.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org