From owner-freebsd-stable Tue Nov 5 11:19:53 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C8F337B401 for ; Tue, 5 Nov 2002 11:19:51 -0800 (PST) Received: from scan.pnc.com.au (scan.pnc.com.au [203.13.174.123]) by mx1.FreeBSD.org (Postfix) with SMTP id 55A8243E42 for ; Tue, 5 Nov 2002 11:19:50 -0800 (PST) (envelope-from peterh@ripewithdecay.com) Received: (qmail 28284 invoked by uid 84); 6 Nov 2002 06:29:38 +1100 Received: from unknown (HELO dialup-151.129.221.203.acc02-high-pen.comindico.com.au) (203.13.174.1) by scan.pnc.com.au with SMTP; 6 Nov 2002 06:29:37 +1100 Date: Wed, 6 Nov 2002 06:20:45 +1100 (EST) From: Peter Hoskin X-X-Sender: peterh@extortion.peterh.dropbear.id.au To: stable@freebsd.org Subject: Re: User login limit In-Reply-To: <20021105190055.GQ15618@techometer.net> Message-ID: <20021106061915.Q301-100000@extortion.peterh.dropbear.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 5 Nov 2002, Erick Mechler wrote: > :: > I've noticed FreeBSD doesn't like accepting more than 24 > :: > logins, no matter > :: > if they're local, ssh, etc. > :: > :: in your /boot/loader.conf file, put a line like: > :: kern.maxusers=0 > :: > :: Or set it to an actual value. > :: 0 will cause it to auto-size > > I'm pretty sure that what you're seeing isn't tuning related, but rather > it's that you're running out of ptys. To fix this, you need to edit a line > in your kernel config from > > pseudo-device pty # Pseudo-ttys (telnet etc) > > to read > > pseudo-device pty 256 # Pseudo-ttys (telnet etc) > > Rebuild your kernel (see Chapter 9 of the handbook for info on rebuilding > your kernels), and then when you have it installed, do the following as > root > > cd /dev/ > /bin/sh > for i in 0 1 2 3 4 5 6 7; do sh ./MAKEDEV pty$i; done I actually have 32 pty's in /dev currently. Not sure if this has anything to do with it, perhaps my limit is because of the kernel. > Cheers - Erick > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message