Unable to set memlock unlimited

I am trying to set memlock unlimited to my user, but with no success.

I’ve followed /etc/security/limits.conf not loaded on boot and Unable to set nofiles soft limit:

  • copied common-session from /usr/share/pam.d to /etc/pam.d/
  • added username - memlock unlimited to /etc/security/limits.conf
  • added session required pam_limits.so conf=/etc/security/limits.conf to /etc/pam.d/common-session
  • rebooted
  • checked
$ ulimit -l

As far as I know this should work. I don’t know what is happening.

Solved (cf. Issue #2372 ).