On Fri, 28 Apr 2000 [EMAIL PROTECTED] wrote:
> Hi All,
>
> I want my Linux system to authenticate a single user and warning
> and disconnecting the second connection if any other with the
> same username wants to connect to the server. I did the following
> in /etc/security file in Linux Red Hat 5.2 system.
>
> * - maxlogins 1
>
> But it did not work. Is there more to do with this or any other way
> to control the access?
>
This Pam does.
Step 1 :
put in : /etc/pam.d/login next line :
session required /lib/security/pam_limits.so
Step 2 :
in /etc/security/limits.conf insert line :
* - maxlogins 1
This should resolve your problem.
***************************************************************
** Murgoci Ionut - SysAdm, Computer HighSchool "Gr. Moisil" *
** City : IASI Country : Romania *
** E-mail : [EMAIL PROTECTED] *
***************************************************************