I have a configuration problem on an embedded box.
I’m trying to set up telnetd on the box.
If I use telnetd -debug rather than inetd,
I can login (testing it via telnet 127.0.0.1).
However, if I use inetd, the telnet session
ends abruptly:
telnet 127.0.0.1
trying 127.0.0.1…
Connected to 127.0.0.1
Escape character is ‘^]’.
Connection closed by foreign host.
In bin I have (amongst others):
login, telnetd, passwd, esh, sh, devc-pty
In etc:
group
hosts
inetd.conf
passwd
resolv.conf
services
termcap
/etc/inetd.conf is as follows:
ftp stream tcp nowait root /bin/ftpd ftpd
telnet stream tcp nowait root /bin/telnetd telnetd
pdebug stream tcp nowait root /bin/pdebug pdebug -
/etc/hosts:
node1 192.168.0.1
node2 192.168.0.2
node11 192.168.0.11
localhost 127.0.0.1
/etc/passwd:
guest::1:1:Guest Account:/:esh
ftp:x:1:1:Anonymous FTP:/:esh
bin::1:1:Binaries:/bin:esh
/etc/services:
ftp 21/tcp
telnet 23/tcp
finger 79/tcp
pdebug 8000/tcp
/etc/shells:
/bin/esh
esh
/bin/sh
sh
I’m at my wit’s end-What am I missing?
I’m using the full stack, 6.2.1PE, and everything is launched from the boot image.
These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
devc-ser8250 -e -b115200 &
devc-con -e &
reopen /dev/con1
[+session] sh &
reopen /dev/con2
[+session] sh &
reopen /dev/con3
[+session] sh &
reopen /dev/con4
[+session] esh &
display_msg Welcome to Neutrino
pipe &
pci-bios
waitfor /dev/pci
devc-pty -n 32&
io-net -dspeedo pci=0 -ptcpip &
waitfor /dev/socket
ifconfig en0 192.168.0.11
inetd &
CIFS mount of the NT filesystem
#fs-cifs -b //pentium4:192.168.0.1:/l /p2-l Administrator admin &
#devb-eide blk automount=hd0t79:/hd0:qnx4
slogger
Thanks in advance for any sharp eyes out there!