[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: inetd and telnetd problem
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2007-10-18 21:08:56
Message-ID: 200710182208.56609.vda.linux () googlemail ! com
[Download RAW message or body]

On Thursday 18 October 2007 18:45, Ming Liu wrote:
> Dear Philipp,
> Thanks for your suggestion. I enabled to support standalone telnetd in 
> busybox and add "-i" in inetd.conf as:
> 
> telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i 
> 
> or even
> 
> telnet stream tcp nowait root /usr/sbin/telnetd telnetd -i -l /bin/ash
> 
> When I telnet the board from a PC, it shows:
> # telnet 192.168.0.4 (board IP)
> Trying 192.168.0.4...
> connected to 192.168.0.4.
> Escape character is '^]'
> 
> Then the cursor stops and there is no login interface. If I kill the 
> "telnetd -i" process from the board, then the following part shows as:
> Connection closed by foreign host.

For testing, do this on your desktop machine (if you are not doing it
on your desktop machine already): build busybox with the same .config,
then run:

$ ./busybox tcpsvd -v 0.0.0.0 2323 ./busybox telnetd -i -l /bin/uname
tcpsvd: info: listening on 0.0.0.0:2323, starting

Then, on another console, try to connect to it:

$ telnet 127.0.0.1 2323
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

Ubuntu 6.06.1 LTS  <============ motd string, printed by telnetd
Linux              <============ printed by uname (which is started because of "-l /bin/uname")
Connection closed by foreign host.


First console now has additional info printed:

$ ./busybox tcpsvd -v 0.0.0.0 2323 ./busybox telnetd -i -l /bin/uname
tcpsvd: info: listening on 0.0.0.0:2323, starting
tcpsvd: info: pid 392 from 127.0.0.1:53585
tcpsvd: info: start 392 localhost.localdomain:127.0.0.1:2323 ::127.0.0.1:53585
tcpsvd: info: status 1/30
tcpsvd: info: end 392 exit 0
tcpsvd: info: status 0/30

If your output is different than mine, post it to the list.
--
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic