> I get a permission denied error when I try to echo, even though I sudo
You're probably doing something like:
sudo echo core >/proc/sys/kernel/core_pattern
...right?
That's not the right syntax, since it causes the parent, unprivileged
shell to try to open the file for writing.
Just 'sudo su' and then paste the magic line:
echo core >/proc/sys/kernel/core_pattern
/mz