Skip to content

Instantly share code, notes, and snippets.

@chrisdodds
Created August 13, 2017 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdodds/b13f70e8daf5c1593e19c7a40b0f6272 to your computer and use it in GitHub Desktop.
Save chrisdodds/b13f70e8daf5c1593e19c7a40b0f6272 to your computer and use it in GitHub Desktop.
Disable AWS Linux/RHEL core dumps
#!/bin/bash
# Only tested with AWS Linux, but should work on RHEL, CentOS, Fedora, etc.
echo '* hard core 0' >> /etc/security/limits.conf
echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf
sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment