Debian compresses and installs ulimit

Everything

I want to permanently set the size of the main file unlimited. After reading about this, we recommend modifying /etc/security/limits.conf. I did this with the following line:

  • soft core 10000 root rod 10000

I reboot after the change, and I issue ulimit -a, and core is still set to 0. I can’t understand why the setting does not work. What can I rewrite?

+4
source share
2 answers

Try the following:

* soft nofile 10000 * hard nofile 10000 

and add this line to the .profile file, fe for root in /root/.profile

 ulimit -c 10000 

or for all users in /etc/profile .

Remember: for remote users: /etc/pam.d/sshd and for su /etc/pam.d/su

 session required /lib/security/pam_limits.so 
+9
source

use this command

 ulimit -SHn 65535 
+2
source

All Articles