Red Hat Bugzilla – Bug 165156
using nproc limits.conf prevents sshd from working
Last modified: 2007-11-30 17:11:11 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Description of problem:
If you use a soft nproc limit via pam_limits, ssh is unable to log users in.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add these two lines to /etc/security/limits.conf on ssh host.
* soft nproc 100
* hard nproc 150
2. Attempt to ssh in to the host.
Actual Results: The following message appears in /var/log/secure:
sshd: Accepted password for user from 192.168.1.1 port 56193 ssh2
sshd: fatal: setresuid 500: Resource temporarily unavailable
Expected Results: Shell prompt.
If you comment out just the soft nproc line, sshd works normally.
Additionally, if you set hard nproc limit of 100, sshd still works normally.
Hmmm but either this user already had 100 processes or the kernel you have on
this machine is seriously broken.
I've tried it here on FC3 machine with the release kernel and the latest updated
one and I haven't seen a problem.