Set System Limits

The entries added to /etc/security/limits.conf

*               hard    nofile          65535
*               soft    nofile          8196
*               hard    nproc           256
*               soft    nproc           128
*               hard    data            8388608
*               soft    data            4194304

have the following effects:

  • 65535 maximum number of open files (hard limit).
  • 8196 maximum number of open files (soft limit).
  • 256 open processes for any user (hard limit).
  • 128 open processes for any user (soft limit).
  • 8388608 allocated memory in KB (hard limit).
  • 4194304 allocated memory in KB (soft limit).

Disable Core Dumps

Add:

* hard core 0

to /etc/security/limits.conf

Disable Core Dumps for SUID Binaries

This can be done with the sysctl option:

fs.suid_dumpable = 0

fuss/linux/hardening.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.