telnetd vs inetd

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!

<acellarius@yahoo.com> wrote in message news:1103_1051215795@192.168.0.5

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

protocols ?

-xtang

/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 file://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!

On Thu, 24 Apr 2003 16:51:32 -0400, “Xiaodan Tang” <xtang@qnx.com> wrote:

In etc:
group
hosts
inetd.conf
passwd
resolv.conf
services
termcap

protocols ?

-xtang

Thank you
It was mssing alright, but still no joy.

From the IDE on a Windows 2k PC, if I right click
on the target navigator, and select telnet session, I can get in.
If I telnet from a command line, no success (connection to host lost).
Locally, still the same result as before

acellarius@yahoo.com wrote:

On Thu, 24 Apr 2003 16:51:32 -0400, “Xiaodan Tang” <> xtang@qnx.com> > wrote:
In etc:
group
hosts
inetd.conf
passwd
resolv.conf
services
termcap

protocols ?

-xtang

Thank you
It was mssing alright, but still no joy.

From the IDE on a Windows 2k PC, if I right click
on the target navigator, and select telnet session, I can get in.
If I telnet from a command line, no success (connection to host lost).
Locally, still the same result as before

/bin/login?


-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David Gibbs wrote:

From the IDE on a Windows 2k PC, if I right click
on the target navigator, and select telnet session, I can get in.
If I telnet from a command line, no success (connection to host lost).
Locally, still the same result as before

/bin/login?

For my embedded system I can telnet in just fine from a QNX6 or QNX4 box,
but I cannot telnet from W2K. Given my infinately small opinion of W2K,
I really couldn’t care less that it doesn’t work.

Rennie

Rennie Allen <rgallen@attbi.com> wrote:
RA > David Gibbs wrote:

From the IDE on a Windows 2k PC, if I right click
on the target navigator, and select telnet session, I can get in.
If I telnet from a command line, no success (connection to host lost).
Locally, still the same result as before

/bin/login?

Isn’t he that terrorist guy they’ve been looking for?

Oops. Sorry, never mind.