From owner-freebsd-questions@FreeBSD.ORG Wed Apr 27 21:18:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFF1C16A4CE for ; Wed, 27 Apr 2005 21:18:52 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72F3143D2F for ; Wed, 27 Apr 2005 21:18:52 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6DBF45132A; Wed, 27 Apr 2005 14:18:51 -0700 (PDT) Date: Wed, 27 Apr 2005 14:18:51 -0700 From: Kris Kennaway To: nocturnal Message-ID: <20050427211851.GA63354@xor.obsecurity.org> References: <42700115.6090203@swehack.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <42700115.6090203@swehack.se> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Open tty limit of 32? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 21:18:52 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 11:16:05PM +0200, nocturnal wrote: > Hi >=20 > Recently, helping a friend setup a shellserver, i noticed some kind of=20 > limit on the number of open ttys. I count 32 open ttys by remote users=20 > before users start getting locked out. Any user trying to login after=20 > "ls -la /dev/tty* | grep -v wheel | wc -l" starts returning 32 get the=20 > following message along with a distorted terminal that is completly locke= d. > "Warning: no access to tty (Bad file descriptor)." >=20 > There are random users using ttys, some two ttys and others maybe more=20 > but it's always 32 open. I almost wanted to post this on hackers because= =20 > i've searched the net like a maniac without answers and no one on irc=20 > could answer me. I've also tried searching through the src/sys for=20 > anything defined to 32. You forgot to mention your FreeBSD version and details of your kernel configuration (ISTR in older versions there was a user-defined maximum number of ptys specified in the kernel config) Kris --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcAG6Wry0BWjoQKURAikFAJwOgM4EmiYm4RszW4B/JP+T20jthwCgp/vo m9hzEILncFZHT8iD88qTXAA= =x3BG -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--