Ubuntu – Apply ulimit globally on Ubuntu

Ubuntuulimit

I need to apply "ulimit -s 256" to any system thread. Is there any way to achieve this under Ubuntu Server?

Best Answer

You can set user limits via pam_limits in /etc/security/limits.conf. See man limits.conf for informations about this file.