[kwlug disc.] Bash startup/limiting core dumps
Chris Frey
cdfrey at foursquare.net
Sun Jan 14 03:08:46 EST 2007
On Fri, Jan 12, 2007 at 10:16:39PM -0500, pnijjar at utm.utoronto.ca wrote:
> Unfortunately, I think that apache is not running as my user account to access
> my files, but rather as a "nobody" user. Am I stuck now? I don't have root on
> this machine.
I was really hoping someone would answer this, as I'm interested in the
proper way to do it too. My guess is that the easiest way would be to
stick 'ulimit -c 0' in the apache init script, but then you don't have root,
and that is a complete hack.
You could try putting this code inside your web scripts themselves,
in some initialization routine. See the getrlimit() and setrlimit()
man pages.
I hope someone reports the real answer. :-)
- Chris
More information about the KWLUG-Disc
mailing list