From owner-freebsd-questions Tue Aug 17 16:21:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by hub.freebsd.org (Postfix) with ESMTP id DF51715853 for ; Tue, 17 Aug 1999 16:21:46 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from stordatan.telia.com (t3o62p16.telia.com [195.198.198.136]) by mailc.telia.com (8.8.8/8.8.8) with ESMTP id BAA24960; Wed, 18 Aug 1999 01:21:57 +0200 (CEST) Received: from partitur.se (localhost [127.0.0.1]) by stordatan.telia.com (8.9.3/8.9.1) with ESMTP id BAA42101; Wed, 18 Aug 1999 01:21:46 +0200 (CEST) (envelope-from girgen@partitur.se) Message-ID: <37B9EE8A.A0DA71BF@partitur.se> Date: Wed, 18 Aug 1999 01:21:46 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 3.2-STABLE i386) X-Accept-Language: sv, en MIME-Version: 1.0 To: Evren Yurtesen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How get apache to dump CGI program's core? References: <37B9462F.252A986A@partitur.se> <37B9EB1A.A9BF87DB@ispro.net.tr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Evren Yurtesen wrote: > > what if you give temporary write access to the userid of the apache > process? > or if apache is switching to the userid of the file owner > you may give write access for the file owner. "nobody" has write access to the CoreDumpDirectory (/var/tmp) I believe that the problem is that the kernel won't allow cores to be dumped when the program has changed uid or similar (not sure exactly what the constraints are). > I believe that this would not be a secure approach for a system though > > Evren Yurtesen > > Palle Girgensohn wrote: > > > > Hi! > > > > I'm running apache 1.3.6 on FreeBSD 3.2-stable. > > > > I'm doing some CGI development, and need to get core dumps when the > > programs fail. Since apache does setuid, the programs are not allowed to > > dump core. Even running apache with -X doesn't help; they sig 11 but no > > core dump. :( > > > > Any ideas? > > > > There's some info on the apache site, but it doesn't say how to fix it: > > http://www.apache.org/docs/misc/FAQ-D.html#wheres-the-dump > > > > Thanks! > > > > /Palle > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message