Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 31876 invoked by uid 500); 23 Jun 2003 15:28:59 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 31840 invoked from network); 23 Jun 2003 15:28:58 -0000 Message-ID: <3EF71CD4.5080703@attglobal.net> Date: Mon, 23 Jun 2003 11:29:24 -0400 From: Jeff Trawick Reply-To: trawick@attglobal.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?G=FCnter_Knauf?= CC: dev@apr.apache.org Subject: Re: permission problems with SDBM Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N G�nter Knauf wrote: > that's what I do already; but what I meant was why Apache _can_ create files > in the log dir while my module cant with the dbm open without touching the files > first and setting permission by hand? > ... > So now my question is: how does Apache handle the log files?? They are 644 and > root/root, while my sdbm files are now 644 nobody/nogroup; and is it possible > to fix my issue if I create the sdbm files already during module initialisaton?? > Are they then created by root, and if so can the module later access them?? > And how does Apache log to the root/root files when running as nobody/nogroup?? > What is the recommend way here? Apache creates/opens them as root and the file descriptors are held open after Apache switches identity you could use the Apache open-logs hook to create/open the files