Disable Core Dumps on Linux
Steps to disable core dumps on Linux
- Prevent users from enabling dumps in their own session by addng
* hard core 0directive to /etc/security/limits.conf.
- Prevent suid progeams from creating dumps by assing
fs.suid_dumpable = 0directive to /etc/sysctl.conf.
sysctl -pto apply new directive to running system.
- Set soft limit to stop creation of core dumps by all users by adding
ulimit -S -c 0 > /dev/null 2>&1directive into /etc/profile.
Gites:2009 “Gites Vivek. Linux Disable Core Dumps. Archive.today Link”