[95381] in RedHat Linux List
Re: telnetd configuration
daemon@ATHENA.MIT.EDU (jp@sugar.midcoast.com)
Sat Oct 17 18:21:22 1998
From: jp@sugar.midcoast.com
To: redhat-list@redhat.com
Date: Sat, 17 Oct 1998 18:20:41 -0400 (EDT)
In-Reply-To: <199810172009.NAA15846@jumbo.surfari.net> from "jt@jumbo.surfari.net" at Oct 17, 98 01:12:00 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>
> I would like to limit the total number of telnet sessions of an
> individual user account (at a time). I looked around the
> documentation (and without tearing into the source code), don't
> know if this is actually feasible.
>
> Any suggestions would be appreciated.
This is a roll-yer-own job.
Here's some pseudo-code ideas.
in their .bash_profile, or in /etc/profile if it's for everybody
finger |grep `whoami` |wc -l
if the results of this are higher than n, where n is your limit,
then exit
if the results of this are lower or equal to n,
then continue along. (do nothing)
--
/*
Jason Philbrook | Midcoast Internet Solutions
jp@midcoast.com | Internet Access, LAN, WAN, and Linux
www.midcoast.com/jp/ | Service and Consulting for Midcoast Maine
*/
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.