apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: permission problems with SDBM
Date Mon, 23 Jun 2003 15:29:24 GMT
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

View raw message