telnetd fails opening pty, "all network ports in use

telnetd fails opening pty, "all network ports in use

Post by Surf Doggi » Mon, 13 Dec 1999 04:00:00



Redhat 6.0,  telnet-0.10-31, kernel built with 256 Unix98 ptys.
in.telnetd started in inetd.conf
I'm building a system from scratch and it mostly works fine.
I used cp -dpR to copy the entire /dev contents from a working system to

the new disk. When I boot it, the network is fine, ie. I'm using IPMasq,

etc., but telnet to the system always returns, "all network ports in
use". I looked at the source and this message seems to occur when a
ptypxx device can't be opened.  /proc/tty/drivers contents look the same

on both systems.

 
 
 

telnetd fails opening pty, "all network ports in use

Post by Steve Housem » Mon, 13 Dec 1999 04:00:00


This problem seems to have occured a few times recently on the NG.

I cant find the doc on my system for the unix98 stuff.

On my system in /etc/fstab I have
none      /dev/pts     devpts  gid=5,mode=620  0 0
and mount shows ....
none on /dev/pts type devpts (rw,gid=5,mode=620)
lsa /dev/pts
drwxr-xr-x   2 root     root            0 Dec 12 08:13 /dev/pts

It would be worthwhile checking that you have /dev/pts mounted.

Please post if you find the answer,

Hope you fix it soon,

Steve Houseman

--

currently  steve.houseman at * net      

 
 
 

telnetd fails opening pty, "all network ports in use

Post by Surf Doggi » Tue, 14 Dec 1999 04:00:00


Thanks for the tip.  After sifting through doc, Configure.help mentioned
this. In fact, that the virtual filesystem refuses to mount.  I have an
fstab entry like yours, devpts support is turned on in the kernel. The
strace of the mount command shows mount opens /etc/mtab, reads it,
closes it and quits. mtab is read/write for root, etc., so what is mount
looking for, ??  I'll check permissions on /proc, though it seems to be
working. I guess I'll have to find the mount source and start searching
through it.  I was disappointed by the telnetd source as I didn't see it
opening /dev/ptmx as I expected. It was opening /dev/ptyXX.  I think I
have the same source as I'm running, etc., so I'm not confident I can
trace through the code.

> This problem seems to have occured a few times recently on the NG.

> I cant find the doc on my system for the unix98 stuff.

> On my system in /etc/fstab I have
> none      /dev/pts     devpts  gid=5,mode=620  0 0
> and mount shows ....
> none on /dev/pts type devpts (rw,gid=5,mode=620)
> lsa /dev/pts
> drwxr-xr-x   2 root     root            0 Dec 12 08:13 /dev/pts

> It would be worthwhile checking that you have /dev/pts mounted.

> Please post if you find the answer,

> Hope you fix it soon,

> Steve Houseman

> --

> currently  steve.houseman at * net

 
 
 

telnetd fails opening pty, "all network ports in use

Post by Surf Doggi » Tue, 14 Dec 1999 04:00:00


It mounts just fine when properly specified, ie. not sloppy. mount -t
devpts /dev/pts /dev/pts. The sloppy mount command didn't work for
whatever reason. Does the word "Duhh" mean anything to me ? Jeez, do I
feel dumb. You'll have to excuse me now while I program my vcr or
something to convince myself I'm not really that stupid.

> This problem seems to have occured a few times recently on the NG.

> I cant find the doc on my system for the unix98 stuff.

> On my system in /etc/fstab I have
> none      /dev/pts     devpts  gid=5,mode=620  0 0
> and mount shows ....
> none on /dev/pts type devpts (rw,gid=5,mode=620)
> lsa /dev/pts
> drwxr-xr-x   2 root     root            0 Dec 12 08:13 /dev/pts

> It would be worthwhile checking that you have /dev/pts mounted.

> Please post if you find the answer,

> Hope you fix it soon,

> Steve Houseman

> --

> currently  steve.houseman at * net

 
 
 

1. telnetd fails opening pty, "all network ports in use"

Redhat 6.0,  telnet-0.10-31, kernel built with 256 Unix98 ptys.
in.telnetd started in inetd.conf
I'm building a system from scratch and it mostly works fine.
I used cp -dpR to copy the entire /dev contents from a working system to
the new disk. When I boot it, the network is fine, ie. I'm using IPMasq,
etc., but telnet to the system always returns, "all network ports in
use". I looked at the source and this message seems to occur when a
ptypxx device can't be opened.  /proc/tty/drivers contents look the same
on both systems.

What have I  missed ?

2. Using a CMS Jumbo tape drive in UNIX

3. ERRORS: "telnetd: all network ports in use", "no ptys" etc

4. my server got crashed

5. "X Error of failed request" when opening a file using VIM

6. Can't get mouse to work in X-Window in Slackware 3.5!

7. followup to my "How to open PTY under SVR4" question

8. TCP/IP Port Redirection

9. ssh and "failed to allocate pty"

10. Problem in "Open" Fortran Library while using Exceed "dtterm"

11. network failed, and "ifconfig","demsg" gave me this info

12. SMAIL problems: "lock failed", and "network is unreachable."

13. failed "Read Cd/Dvd Capacity";failed "Prevent/Allow Medium Removal"