On Fri, Apr 21, 2006 at 09:08:28AM +0200, Ari?n Huisken wrote:
> Citeren Alain Fauconnet <[EMAIL PROTECTED]>:
> 
> > On Fri, Apr 21, 2006 at 08:44:45AM +0200, Ari?n Huisken wrote:
> >> >> >> Is it possible (and how) to prevent users to log in more than 
> >> once with
> >> >> >> the same username on the console through telnet?
> >
> > How about using /etc/security/limits.conf?
> >
> > Greets,
> > _A_
> 
> Vidar already suggested it, but I can't get it working. Previous post:
> 
> > /etc/security/limits.conf is probably what you want?
> > Set maxlogins to "1" and PAM should take care of that limit.
> >
> > Untested :)
> 
> Added in /etc/security/limits.conf:
> *              hard    maxlogins       1
> 
> but I can still use more sessions. Should I restart someting to make it work?

Hmmm... I use it with success on a web hosting box that has
this line in /etc/security/limits.conf:

@webmastr       -       maxlogins       2

"webmastr" is an /etc/group entry. Works for me (for SSH connections
and logins on the physical console, tested). I use TSL 2.2.

I'd try replacing "hard" by "-" first, because "hard" doesn't apply
for a login limit.
Don't think that the "*" vs. "@group" would change a thing...
Are you sure that there's not another line overriding
your rule? 

Greets,
_A_
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to