Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2002 11:00:55 -0800
From:      Erick Mechler <emechler@techometer.net>
To:        Don Bowman <don@sandvine.com>
Cc:        peterh@ripewithdecay.com, stable@FreeBSD.ORG
Subject:   Re: User login limit
Message-ID:  <20021105190055.GQ15618@techometer.net>
In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C8533701022E5E@mail.sandvine.com>
References:  <FE045D4D9F7AED4CBFF1B3B813C8533701022E5E@mail.sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
:: > 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

Cheers - Erick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021105190055.GQ15618>