/etc/security/limits.conf not loaded on boot

It works for me using console logins. I didn’t test anything else just yet. Clear version 31880+

Here’s what I had to do:

  • copy /usr/share/pam.d/common-session to /etc/pam.d/common-session and add a single line with session required pam_limits.so to the latter file.
  • create /etc/security/limits.conf with username - priority -20
  • reboot

Then, if I log in on the console, as the listed user, I can run /usr/bin/nice -n -20 bash and to confirm, ps -eo "%p %n %c"

Please double check you have the needed configs in place.