Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 55431 invoked by uid 500); 2 Jul 2002 13:41:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 55404 invoked from network); 2 Jul 2002 13:41:02 -0000 Received: from unknown (HELO baal.kcgeek.com) (206.105.2.62) by daedalus.apache.org with SMTP; 2 Jul 2002 13:41:02 -0000 Received: from [192.168.70.60] (mkc-65-28-64-37.kc.rr.com [65.28.64.37]) by baal.kcgeek.com (Postfix) with ESMTP id 35DDC22535; Tue, 2 Jul 2002 08:34:08 -0500 (CDT) Subject: Re: Another suexec question From: blather To: users@httpd.apache.org Cc: rmunde01@sprintspectrum.com In-Reply-To: <1025617019.15437.299.camel@lfellows> References: <1025597142.1547.19.camel@bigtoe.netorbit.com> <1025613433.15437.296.camel@lfellows> <1025613790.1548.25.camel@bigtoe.netorbit.com> <1025617019.15437.299.camel@lfellows> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) Date: 02 Jul 2002 08:38:46 -0500 Message-Id: <1025617127.1523.37.camel@bigtoe.netorbit.com> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 2002-07-02 at 08:36, Lee Fellows wrote: > On Tue, 2002-07-02 at 08:43, blather wrote: > > On Tue, 2002-07-02 at 07:37, Lee Fellows wrote: > > > On Tue, 2002-07-02 at 04:05, blather wrote: > > > > > > > > Configured apache like so: > > > > > > > > > > > > [root@spider apache_1.3.26]# ./configure --enable-module=most > > > > --enable-shared=max --enable-suexec --suexec-docroot=/var/www > > > > --suexec-safepath=/bin:/usr/bin:/usr/local/bin --suexec-caller=nobody > > > > --suexec-logfile=/usr/local/apache/logs/suexec_log --suexec-uidmin=98 > > > > --suexec-gidmin=98 > > > > > > > > > > > > ...and read every document + maillist archive until I'm sick of it. The > > > > program is 755, in /var/www/cgi-bin and owned by owner who wants it > > > > executed, parent dir is 755, apache is running as nobody(99):nobody(99). > > > > I'm out of ideas. One odd thing I did notice is the suexec_log never > > > > got created at install. > > > > > > > > Any help is appreciated. > > > > > > > > --rjm-- > > > > > > > > > > When apache starts, does it report that suexec is enabled? > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > > > Sorry, yeah it does: > > > > [Tue Jul 2 03:02:43 2002] [notice] caught SIGTERM, shutting down > > [Tue Jul 2 03:02:48 2002] [notice] Apache/1.3.26 (Unix) configured -- > > resuming normal operations > > [Tue Jul 2 03:02:48 2002] [notice] suEXEC mechanism enabled (wrapper: > > /usr/local/apache/bin/suexec) > > [Tue Jul 2 03:02:48 2002] [notice] Accept mutex: sysvsem (Default: > > sysvsem) > > > > --rjm-- > > -- > > "... one of the main causes of the fall of the Roman Empire was that, > > lacking zero, they had no way to indicate successful termination of > > their C > > programs." > > > > > > How do you call the cgi you want suEXEC to run? (What is the url?) > > What do you see in the error_log for a failed request? > It's called by http://192.168.70.10/cgi-bin/path/to/test.cgi. The error log shows the script in question failing ( it does a 'system(cp file testfile)' for permission reasons because the directory is 755 (and the script is running as nobody). --rjm-- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org