Created
August 13, 2017 18:54
-
-
Save chrisdodds/b13f70e8daf5c1593e19c7a40b0f6272 to your computer and use it in GitHub Desktop.
Disable AWS Linux/RHEL core dumps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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