Skip to contentSkip to conversation

sshd limits

DISCUSSION sej.kernel 1 participant 1 message May 18, 2006

lore
Share & tools
lore

sej.kernel

author
#0 lore raw

Hi,
I modified
1) /etc/security/limits.conf :
* hard memlock 256000
* soft memlock 256000

2) /etc/pam.d/login and /etc/pam.d/sshd
session required pam_limits.so

Then I restarted sshd (service sshd restart) to applay changes.

But when I connect to my PC via ssh I don't have the good memlock rlimit. Then if I use 'su mylogin', I have the right limits !!
So what did I forget in my configuration ?

regards,
sej