*BSD News Article 22989


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!emba-news.uvm.edu!aix5.emba.uvm.edu!wollman
From: wollman@aix5.emba.uvm.edu (Garrett Wollman)
Subject: Re: ptys and tty's; and accounting [FreeBSD]
Message-ID: <1993Oct28.182656.4912@emba.uvm.edu>
Sender: news@emba.uvm.edu
Organization: University of Vermont, EMBA Computer Facility
References: <2an8u7$t3s@tut.msstate.edu>
Date: Thu, 28 Oct 1993 18:26:56 GMT
Lines: 34

In article <2an8u7$t3s@tut.msstate.edu>,
Viren R. Shah <viren@cy.cs.olemiss.edu> wrote:

>2> Currently, my maxusers is set to 24

Don't bother fiddling with maxusers, it doesn't do much of anything
and doesn't have any effect whatsoever on the number of users you can
actually have.

>I figure thats
>cause of the fact that i currently have only 16 /dev/pty* entries (and
>16 /dev/ttyp* entries)

You got it.

$ su
# cd /dev
# sh MAKEDEV pty1

...should make the second set of 16 ptys (ttyq0 to ttyqf).  Similarly
`pty2' does the third set (`r') and `pty3' does the fourth set (`s').
It is possible to create more than 48 ptys, but `xterm' and `rlogind'
and `telnetd' don't bother to search beyond `s'.

(The eventual solution to this is to provide a proper cloning pty
driver with automatic allocation and templating.)

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant