trouble setting limits.conf


I’m having trouble configuring user limits on the latest console image (debian-7.8-console-armhf-2015-03-01).
The new limits set on limits.conf don’t seem to have any effect.

debian@beaglebone:~$ cat /etc/security/limits.conf


@audio - memlock 256000
@audio - rtprio 99
@audio - nice -19

End of file

debian is part of audio group

debian@beaglebone:~$ groups
debian adm kmem dialout cdrom floppy audio dip video plugdev users xenomai weston-launch systemd-journal netdev i2c spi admin

when checking with ulimit

debian@beaglebone:~$ ulimit -l -r
max locked memory (kbytes, -l) 64
real-time priority (-r) 0

Any hints?


Are you at the BBB console, or logging in via ssh? If you're using
ssh with it's Debian default setup, it will override the limits unless
you set "UsePam yes" in your sshd config file.

Thanks a lot Charles, that worked.