> hi:
>  i try to edit /etc/security/limits.conf to limit maxlogin users
>  and i find that if i set maxlogin = 1, the actual limit = 2,
>  if i set maxlogin = 2, the actual limit = 3, if set maxlogin = n ,
>  actual maxlogin = n+1 ...
>  but if i set maxlogin = 0 , the actual limit = 0. :(
>  so i can never set acutal maxlogin to 1..
>  any solution?
>  thanks for reply
>
> Regards,
> tbsky

  since i got no reply,so i try to find at redat pam email list, and
  find article below, i use patch at

  http://sourceforge.net/tracker/index.php?
  func=detail&aid=493294&group_id=6663&atid=106663

  to mdk 8.1's pam and it works fine now. maybe 8.2 or cooker can fix too.

  ps: switch pam_limits and pam_unix didn't work for me. must patch..



pam_limits maxlogins count -Out by one
Cristian Gafton [EMAIL PROTECTED]
Mon, 1 Apr 2002 23:49:42 -0500 (EST)

    * Previous message: Maybe a newbie question.
    * Next message: Problem on pam-0.74-39
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Sat, 30 Mar 2002, Andrew Morgan wrote:

> Michael wrote:
> > Two q's from me:
> > 1)
> > pam_limits module appears to be out by one for certain authentication
> > methods -- In particular ssh -- Example, if I set maxlogins for a user
> > of 1, the user is allowed 2 logins, the third fails. If I set maxlogins
> > 0, no logins allowed. I assume someone is aware of it??
> > Indeed,
> >
http://sourceforge.net/tracker/index.php?func=detail&aid=493294&group_id=6663&atid=106663
As a workaround solution, you might want to list the pam_limits after the
pam_(unix|pwdb) session module so that pam_limits will get an updated utmp
when it runs - which explains why I did not find this problem in my
testing.

Cristian
--
----------------------------------------------------------------------
Cristian Gafton     --     [EMAIL PROTECTED] --     Red Hat, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


























> hi:
>  i try to edit /etc/security/limits.conf to limit maxlogin users
>  and i find that if i set maxlogin = 1, the actual limit = 2,
>  if i set maxlogin = 2, the actual limit = 3, if set maxlogin = n ,
>  actual maxlogin = n+1 ...
>  but if i set maxlogin = 0 , the actual limit = 0. :(
>  so i can never set acutal maxlogin to 1..
>  any solution?
>  thanks for reply
>
> Regards,
> tbsky




Reply via email to