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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|