I'm currently running RHEL7. I haven't been able to find a definitive explanation of how to disable core dump files. I can limit to number of core files that are produced, but I don't know how to disable them entirely. I limited the number of core files that get generated by adding
kernel.core_uses_pid = 0 kernel.core_pattern = core
sudo sysctl -p
This limits core file generation to a single file that gets rewritten each time there's a core dump. But I'd like to stop this file from being generated altogether. Thanks!
EDIT: I also tried this:
Add the line
This didn't change anything, core files still get produced.