I added to my system-wide /etc/security/limits.conf the following two rows:
* soft rtprio 55
* hard rtprio 55
After a system reboot, I get two different results according to the way I access my user account on the machine.
user@client# ssh user@server
user@server# ulimit -r
55
Then I logout and login again as root
user@client# ssh root@server
root@server# su - user
user@server# ulimit -r
0
I have no special settings neither in .bashrc nor in any other places, or, at least, I think so.
Why is this happening?