Linux – way to set ulimit for all root processes

linux

I set /etc/security/limits.conf so that root has a high ulimit. However, after restarting the system some of the processes running as root still have a limit of 1024. Does the limits.conf not apply to all applications?

Best Answer

The limits set through /etc/security/limits.conf only apply to processes that pass through the PAM stack and have the pam_limits module applied.

It's likely these processes do not go through PAM.

I think you'd have to find out where they are started from and manually set the ulimit there using the ulimit command.