Enabling core dumps

Tony Houghton sudo at realh.co.uk
Fri Oct 25 10:24:23 EDT 2002


In <20021023202923.GA13986 at realh.co.uk>, Tony Houghton wrote:

> I want core dumps to be enabled in a program I'm running from sudo, in
> Linux. I've tried setting ulimit -c unlimited in a wrapper script
> between the sudo command and the program I want to run, but that doesn't
> work. (I have also made sure the script sets the cwd to the target
> user's home dir so it has write access to create a core file.)

I've found out what's going on now. When I said I was setting the home
directory, I was just using cd ~, but sudo doesn't change $HOME unless
you use the -H option!

-- 
TH * http://www.realh.co.uk



More information about the sudo-users mailing list