httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7791] New: - mod_suexec problem
Date Sat, 06 Apr 2002 13:03:56 GMT
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=7791>.
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=7791

mod_suexec problem

           Summary: mod_suexec problem
           Product: Apache httpd-2.0
           Version: 2.0.32
          Platform: All
               URL: http://ping.ovh.net/traceroute_1.3.24.cgi
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: oles@ovh.net
                CC: oles@ovh.net


I have just compiled 2.0.35 and some of cgi script does not
word anymore. I used to have 1.3.24 (with suexec too).
So, it should work with without any problem.

the problem is that the scripts do not take the variables
in the right order:
http://ping.ovh.net/traceroute_1.3.24.cgi works on 1.3.24 only
and
http://ping.ovh.net/traceroute_2.0.35.cgi works on 2.0.35 only

# diff -u traceroute_1.3.24.cgi traceroute_2.0.35.cgi 
--- traceroute_1.3.24.cgi       Sat Apr  6 14:56:05 2002
+++ traceroute_2.0.35.cgi       Sat Apr  6 14:56:00 2002
@@ -49,7 +49,7 @@
         else 
                 echo "Result for <b>$1</b>:"
                 echo \<PRE\>
-                nice $TRACEROUTE "$1" 2>&1
+                nice $TRACEROUTE "$2" 2>&1
                 echo \</PRE\>
         fi
 else

it is the same when you try to open a cgi with
perl

# telnet ping.ovh.net 80
Trying 213.186.33.13...
Connected to ping.ovh.net.
Escape character is '^]'.
HEAD / HTTP/1.0


----> nothing
with ps auxw I see this:
ovh      28262  0.2  0.4  2244 1180 ?        S    14:59   0:00 perl index.cgi 
index.cgi

(index.cgi 2 times ?)
# kill 28262
and telnet ping.ovh.net 80 gives:

HTTP/1.1 200 OK
Date: Sat, 06 Apr 2002 12:59:08 GMT
Server: Apache/2.0.35 (Unix)
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Connection closed by foreign host.

the configuration:
# uname -a
Linux ping.ovh.net 2.2.20ext3 #2 Mon Jan 21 23:37:49 CET 2002 i686 unknown

# /usr/local/apache/bin/httpd -V
Server version: Apache/2.0.35
Server built:   Apr  6 2002 14:18:38
Server's Module Magic Number: 20020329:0
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
# /usr/local/apache/bin/httpd -v
Server version: Apache/2.0.35
Server built:   Apr  6 2002 14:18:38
# /usr/local/apache/bin/httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_echo.c
  mod_cache.c
  mod_mem_cache.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

<VirtualHost *>
DocumentRoot /home/ovh/www
ServerName ping.ovh.net
SuexecUserGroup ovh ovh
</VirtualHost>

[2002-04-06 15:00:17]: uid: (500/ovh) gid: (500/500) cmd: traceroute.cgi
[2002-04-06 15:00:23]: uid: (500/ovh) gid: (500/500) cmd: traceroute.cgi

Mime
View raw message