new openssh-server startup scripts broken

Jakub Bogusz qboosh at pld-linux.org
Sun Aug 24 23:31:15 CEST 2003


On Sun, Aug 24, 2003 at 09:19:57PM +0200, Michal Moskal wrote:
> On Sun, Aug 24, 2003 at 09:18:34PM +0200, Jakub Bogusz wrote:
> > On Sun, Aug 24, 2003 at 04:21:36PM +0200, Michal Moskal wrote:
> > > After upgrading openssh-server from rel 3.2 to rel 5
> > > 
> > > [malekith at roke init.d]$ ssh roke
> > > Connection to roke closed by remote host.
> > > Connection to roke closed.
> > > [malekith at roke init.d]$ 
> > > 
> > > Aug 24 16:12:15 roke sshd[16202]: fatal: PAM session setup failed[6]:
> > > Permission denied
> > > 
> > > Replacing /etc/rc.d/init.d/sshd with old version (from 3.2) fixes the
> > > problem.
> > > 
> > > The command that causes the problem seems to be ulimit -S -p unlimited.
> > 
> > Have you set some other limits before trying to start sshd?
> 
> Nope.

Uhm... I see I must rewrite ulimits setting to allow setting both soft
and hard limits using single command (because when using separate
commands decreasing limit requires decreasing soft limit first, but
increasing limit requires increasing hard limit first... (if called by
root of course, won't work otherwise))


-- 
Jakub Bogusz    http://cyber.cs.net.pl/~qboosh/



More information about the pld-devel-en mailing list