*BSD News Article 5475


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!shamash!runyon.cim.cdc.com!pbd
From: pbd@runyon.cim.cdc.com (Paul Dokas)
Newsgroups: comp.unix.bsd
Subject: Re: No pty's available...
Message-ID: <47811@shamash.cdc.com>
Date: 23 Sep 92 14:26:10 GMT
References: <19njobINN94l@uwm.edu> <veit.717230272@du9ds3>
Sender: usenet@shamash.cdc.com
Organization: ICEM Systems, Inc.
Lines: 47

In article <veit.717230272@du9ds3>, veit@du9ds3.uni-duisburg.de (Holger Veit) writes:
|> In <19njobINN94l@uwm.edu> einar@convex.csd.uwm.edu (Einar Bergsson) writes:
|> 
|> >     I am having problems logging on to my 386bsd system, remotely.  It is
|> >giving me an error on the term I am logging in from, something like 
|> >telnetd: No pty's availabel....Or something to that effect.  (Can try it
|> >system name is gopher.lib.uwm.edu.)  Does anyone have a clue about what is
|> >going on here?  This happened after I successfully mounted another system on 
|> >to 386bsd system.  (I ran nfsd, mountd, and portmap)
|> >Any thoughts on this would be appresiated....
|> >Thanks...
|> 
|> >     -Einar-
|> >-- 
|> >     -Einar-
|> 
|> You have to increase the number of pty/tty pseudodevices in the kernel.
|> This is a line in the config file for your kernel. Then you have to 
|> rebuild the kernel. The standard kernel has only 4 pty's configured.
|> 
|> Holger

I also had the "telnetd:  No pty;s available..." problem.  Originially I thought
that it was due only to too few pty's in the config file, but it turned out that
"ls -la /dev/*pty*" resulted in:

crw-rw-rw-    1 root       6,   0 Sep 23 08:13 ptyp0
crw-rw-rw-    1 root       6,   1 Sep 23 07:14 ptyp1
crw-rw-rw-    1 root       6,   5 Sep 17 14:29 ptyp5
crw-rw-rw-    1 root       6,   6 Sep 11 14:40 ptyp6
crw-rw-rw-    1 root       6,   7 Sep 11 14:40 ptyp7
crw-rw-rw-    1 root       6,   8 Sep 11 14:40 ptyp8
crw-rw-rw-    1 root       6,   9 Sep 11 14:40 ptyp9
crw-rw-rw-    1 root       6,  10 Sep 11 14:40 ptypa
crw-rw-rw-    1 root       6,  11 Sep 11 14:40 ptypb
crw-rw-rw-    1 root       6,  12 Sep 11 14:40 ptypc
crw-rw-rw-    1 root       6,  13 Sep 11 14:41 ptypd
crw-rw-rw-    1 root       6,  14 Sep 11 14:41 ptype
crw-rw-rw-    1 root       6,  15 Sep 11 14:41 ptypf

notice that it jumps from ptyp1 to ptyp5...  I made devices pty[234] and
also increased to 10 ptys in the config file.  All is now well!
-- 
#include <std.disclaimer>
#define FULL_NAME                          "Paul Dokas"
#define EMAIL                              "pbd@runyon.cim.cdc.com"
/* we are realizing infinite possibilities in exchange for our soul */