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 withsession required pam_limits.so
to the latter file. - create
/etc/security/limits.conf
withusername - 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.