Limits are inherited from a parent process to its child processes. Processes running as root can change limits arbitrarily; other processes cannot increase hard limits. Thus the hard limits set by the login process affect all the processes in a session.
If you change /etc/security/limits.conf
, this will
affect all new sessions, and processes in these new sessions. It won't
affect processes that are already running, nor processes started by
processes that are already running.
So if you need to increase some limits, you'll have to either log out and back in, or start another session (e.g. with ssh localhost
, or on another console).
Comments
Post a Comment
https://gengwg.blogspot.com/