I want to set systemwide ulimit on ubuntu (all processes, all users).
How can I set it?
thanks
JP
You can set these in /etc/security/limits.conf on Red Hat systems. I think it's the same on Ubuntu. It has examples by default, they're pretty straightforward. Post back if you have problems.
In /etc/security/limits.conf add:
root - core unlimited
* - core unlimited
You will need to log out and log back in before the limits are applied to your session.
man limits.conf
to get details on which settings to use. They are also detailed in the header of limits.conf.
pam_limits.so
during user's login. --- The processes started by init
/ systemd
(or other alternative) and their children - i.e. system daemons - will not be limited by anything from /etc/security/limits.conf
.
Sep 19, 2017 at 12:47