Help - Search - Members - Calendar
Full Version: Problem with PAM settings
The Planet Forums > System Administration > General Support Questions
goolex
Hi
i wana limit maxlogins with pam but i have few problems ,

when i am settings maxlogins to 1 , each user can have maximum 2 ssh login ! and third login getting network faild

and when i am setting maxlogin to 0 , user are unable to login !

my problem is i wana limit ssh login to 1 !! not 2 :shock:


and when ssh is limited for maxlogins , its not showing any msg and just showing network failed , is there any way to show a msg ? like ( Too many logins , .... ) ?

and third problem in my ssh login , it showing like this :

QUOTE
Oct 5 10:12:37 server pam_limits[8932]: checking if user1 is in group testgroup1
Oct 5 10:12:37 server pam_limits[8932]: Too many logins (max 1) for user1
Oct 5 10:12:41 server sshd[8932]: fatal: PAM session setup failed[6]: Permission denied


and what this line mean ?

QUOTE
Oct 5 10:12:41 server sshd[8932]: fatal: PAM session setup failed[6]: Permission denied
aussie
Maybe you should start by telling us what type of box you have. Like OS, CP etc. Seems like your just running a plain vanilla Unix box with no CP, but i could be wrong. If you are not running a plain jane Unix box then my question is, why are you screwing around with PAM? Leave her alone! icon_razz.gif
goolex
os is centos 3.4

i found somethings !

http://sourceforge.net/tracker/index.php?f...663&atid=106663

but i dont know how make that patch ,

can some one say how to do this ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.