Re: [ILUG] Wierd telnet problem...

From: jplooney at domain compapp.dcu.ie
Date: Tue 25 May 1999 - 12:32:44 IST


On Tue, May 25, 1999 at 10:59:26AM +0100, kevin lyda mentioned:
> "John P. Looney" burst across the net:
> >minbar [0] telnet localhost
> >Trying 127.0.0.1...
> >Connected to localhost.
> >Escape character is '^]'.
> >telnetd: All network ports in use.
> >Connection closed by foreign host.
>
> what does /var/log/messages have to say for itself?

 Nothing, barring that NFS doesn't start up properly.

> try the above but run something like this first:
> strace -o /tmp/foo.inetd -f -p `cat /var/run/inetd.pid`
>
> then kill it and grep open /tmp/foo.inetd seeing which pty's telnetd
> is looking to get at.
>
> kevin

 Right. I set inetd to debug, and did an strace -f on it. Look at this:

16785 getpeername(0, {sin_family=AF_INET, sin_port=htons(1936), sin_addr=inet_addr("127. 0.0.1")}, [16]) = 0
16785 setsockopt(0, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
16785 open("/dev/ptmx", O_RDWR) = 3
16785 ioctl(3, TCGETS, {B38400 opost isig icanon echo ...}) = 0
16785 ioctl(3, 0x80045430, 0xbfffd7f8) = 0
16785 stat("/dev/pts/0", 0xbfffd780) = -1 ENOENT (No such file or directory)
16785 close(3) = 0
16785 write(0, "telnetd: All network ports in us"..., 36) = 36

 What's up. /dev/pts has no files in it. I thought that when unix98 pty
support was compiled in, the kernel was supposed to make a pty file there,
when it was stated or opened...

 According to 'ps -ef' all the shells are using ttyp?? files - why not
ptys?

 USB support kicks ass BTW. Kist noticed that it starts off a few kernel
threads to deal with different things. That's hella cool.

Kate

-- 
Is PIRACY killing the Amiga?" bravely ponders AMIGA FORMAT -
well, either that or someone's stopped manufacturing the hardware.
                                        -- www.ntk.net (30.04.99)


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:14 GMT