From owner-freebsd-questions Thu Oct 14 19: 0:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from web115.yahoomail.com (web115.yahoomail.com [205.180.60.88]) by hub.freebsd.org (Postfix) with SMTP id 645C414BE6 for ; Thu, 14 Oct 1999 19:00:49 -0700 (PDT) (envelope-from black_mask_of_death@yahoo.com) Message-ID: <19991015015815.27914.rocketmail@web115.yahoomail.com> Received: from [216.161.144.185] by web115.yahoomail.com; Thu, 14 Oct 1999 18:58:15 PDT Date: Thu, 14 Oct 1999 18:58:15 -0700 (PDT) From: Junon of Tristan Subject: RE: login sessions To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To limit the login session from telnet, you need to edit /usr/src/usr.bin/login/login.c. Find the #define DEFAULT_RETRIES, and change it to number you want (default is 10, which means you can try to login 10 times before the connection being closed.) I change it to 3, so after 3 failed attempts login will close the connection. After that, I did make & make install I hope this helps. --- Christopher Michaels wrote: > There is an option in the kernel config named "pty" > and it's the number of > virtual terminals that are available. If this were > set to "16" for example, > you could only have 16 virtual terminals at a time, > which are what remote > logins use. This would have no effect on the > console. > > This would require a re-compile of the kernel. > > If you're looking to limit logins on a per > user/class basis, you may want to > take a look at /etc/login.conf > > I'm not sure this is the solution you're looking > for, but I hope it helps. > > -Chris > > > -----Original Message----- > > From: danville@hotmail.com > [SMTP:danville@hotmail.com] > > Sent: Thursday, October 14, 1999 12:49 PM > > To: freebsd-questions@FreeBSD.ORG > > Subject: login sessions > > > > Hi , > > We are trying to limit the amount of login > sessions on our FreeBsd OS. > > > > How can we do this. > > > > i think in solaris we couls use the /etc/system > and change the kernel > > setting . if this is correct what is the > equivalent file for this th > > FreeBSD > > > > > > Thanks > > Danny > > > > > ______________________________________________________ > > Get Your Private, Free Email at > http://www.hotmail.com > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body > of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of > the message > ===== __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message