Re: inetd and telnetd problem

2007-10-18 Thread Ming Liu

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.

It is still not correct. But it seems that the board could react the telnet 
command from outside. How can it show the login interface?


Thanks for your telling.

BR
Ming




From: Philipp Wehrheim [EMAIL PROTECTED]
To: Ming Liu [EMAIL PROTECTED]
Subject: Re: inetd and telnetd problem
Date: Thu, 18 Oct 2007 17:38:38 +0200

Hey,

Am Donnerstag, den 18.10.2007, 15:12 + schrieb Ming Liu:
 Dear all,
 I met a problem on inted and telnetd. When I boot the linux system and
 inted looks running there. However it does not provide the connection 

for
 telnet or http from other clients. For example if I telnet from a 

PC to

 my board, it shows:

 # telnet 192.168.0.4 (board IP)
 Trying 192.168.0.4...
 connected to 192.168.0.4.
 Escape character is '^]'
 connection closed by foreign host.

 My board is ppc405 cpu on Xilinx ML403 board. In the /etc/service, 

there

 are such lines

 telnet 23/tcp
 ...
 www80/tcphttp
 www80/udp

 and in /etc/inetd.conf, there are

 telnet stream tcp nowait root /usr/sbin/telnetd telnetd
 http stream tcp nowait www /usr/sbin/httpd httpd -h /home/www

 When I telnet from a PC, it shows connection closed by foreign host. 

And

 if I http my board with a browser, it also cannot connect to host
 192.168.0.4. For httpd, if I run it independently, the browser could
 connect the host successfully and get the webpage. However for telnetd, 

it

 doesn't work if I run it seperately.

Did you enable:
���[*]   Support standalone telnetd (not inetd only) ???

if you did add a -i to the inetd.conf and try again


 I have tried both busybox-1.7.2 and 1.2.0 versions, the results are the
 same. What's the problem? I will appreciate so much if you can give me 

some

 hint. Thanks a lot.

 Best Regards
 Ming

 _
 涓��虹杩�琛�浜ゆ��锛�璇蜂娇��� MSN Messenger:  

http://messenger.msn.com/cn


 ___
 busybox mailing list
 busybox@busybox.net
 http://busybox.net/cgi-bin/mailman/listinfo/busybox



_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  

___
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Re: inetd and telnetd problem

2007-10-18 Thread Denys Vlasenko
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