On Sun, May 16, 2004 at 11:07:29AM +0300, Uzi Refaeli wrote:
> Hello all,
> 
> I need to raise the number of open files for a user.
> I added soft and hard values in limits.conf and verefied 
> that /etc/pam.d/login, xdm and sshd contains pam_limits.so as required.
> First i tried it at home on FC1 machine wich worked fine.
> Then i did the same on RH9 machine. local login is working fine but sshd is 
> not working when i ssh direct to that user. ssh to root and then su to 
> that user raising the number of files.
> 
> Any ides any one?
> Could it be a delibirate choise of Redhat, a bug or something i did worng?

Simple idea: RH9's OpenSSH is compiled without PAM support, while RH9's
'su' and 'login' are compiled with PAM support.

In fact, do check your /etc/ssh/sshd_config. According to
"man sshd_config":

     UsePAM
        Enables PAM authentication (via challenge-response) and
        session set up.  If you enable this, you should probably
        disable PasswordAuthentication.  If you enable then you
        will not be able to run sshd as a non-root user.
  ! --> The default is `no''.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to