From: John O. <joh...@o-...> - 2007-02-24 19:23:40
|
Kevin M. Goess wrote: > You're right, there are a bunch of different solutions to the problem, > varying in "neatness" according to taste. Here are a couple > possibilities: > > b) something like this should work: > > #change effective uid while we open the log files > { local $> = getpwnam('nobody'); #or whoever owns them > Log::Log4perl::init() > } Now that's the kind of 'neat' I like! I may have thought of that eventually but so rarely play with active process permissions/users that it would've taken me a long time, many thanks. Of course, for added karma I'll replace 'nobody' with something that fetches the configured apache user from the config tree :) John |