Steps to disable core dumps on Linux

  • Prevent users from enabling dumps in their own session by addng * hard core 0 directive to /etc/security/limits.conf.
  • Prevent suid progeams from creating dumps by assing fs.suid_dumpable = 0 directive to /etc/sysctl.conf.
  • Execute sysctl -p to 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>&1 directive into /etc/profile.

Gites:2009 “Gites Vivek. Linux Disable Core Dumps. Archive.today Link