On Tuesday 18 May 2004 02:27, Ilya Konstantinov wrote: > 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. Good idea! I'll check it...
> 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''. > Could not find anything about UsePam... which version do you have? -- Uzi Refaeli --------------------------------------------- "Computer games don't affect kids. I mean, if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." Kristian Wilson, Nintendo Inc, 1989 ================================================================= 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]