inetd failure?

bridged with qdn.public.bsp
Richard Bonomo,6289 Chamb

inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 1:52 am

I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.

If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Brian K. Hlady

Re: inetd failure?

Post by Brian K. Hlady » Fri Jan 31, 2003 1:36 pm

Is devc-pty started? Also, is /bin/login present on your target?

Cheers,
-Brian
--
+================================================+
Brian K. Hlady bhlady@qnx.com
Technical Account Manager (613) 591 0836
QNX Software Systems, Ltd. extension 9268
+================================================+

"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.

If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of
program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Mario Charest

Re: inetd failure?

Post by Mario Charest » Fri Jan 31, 2003 4:04 pm

"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.
Make sure you have files /etc/services and /etc/inetd.conf.
If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of
program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 4:32 pm

/bin/login is present
/devc-pty was not started, so I am now starting it
(and the pertinent devices do appear) before starting
inetd. This has no effect so far (same error messages
and failure...)

Rich


Brian K. Hlady wrote:
Is devc-pty started? Also, is /bin/login present on your target?

Cheers,
-Brian
--
+================================================+
Brian K. Hlady bhlady@qnx.com
Technical Account Manager (613) 591 0836
QNX Software Systems, Ltd. extension 9268
+================================================+

"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.

If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of
program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Brian K. Hlady

Re: inetd failure?

Post by Brian K. Hlady » Fri Jan 31, 2003 5:11 pm

Is it possible for you to post your build file, and inetd.conf, please?

Cheers,
-Brian

"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote in
message news:b1e7n5$h72$1@inn.qnx.com...
/bin/login is present
/devc-pty was not started, so I am now starting it
(and the pertinent devices do appear) before starting
inetd. This has no effect so far (same error messages
and failure...)

Rich


Brian K. Hlady wrote:


Is devc-pty started? Also, is /bin/login present on your target?

Cheers,
-Brian
--
+================================================+
Brian K. Hlady bhlady@qnx.com
Technical Account Manager (613) 591 0836
QNX Software Systems, Ltd. extension 9268
+================================================+

"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.

If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of
program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 5:46 pm

Brian K. Hlady wrote:
Is it possible for you to post your build file, and inetd.conf, please?

Cheers,
-Brian

Dear Brian,
OK, here is a bunch of stuff. Not everything (by a long
shot) is in the build file. More information is posted here
after the build file. Also, I am starting some things by hand
during the initial set up and testing phase (see the sin output
at the end...)

Thanks!

Rich

First the base build file:

###########################################################################
#
# Neutrino on an PC BIOS compatible system
#
# This is for building a bootable neutrino image that will run from its
# own filesystem partition on M-Systems DiskOnChip.
#
# Note that the default image links at 4M. If you have 4M or less,
# uncomment the line below
# [image=1m]
#
###########################################################################

[virtual=x86,bios +compress] boot = {
startup-bios -Nst5ka
PATH=/proc/boot:/bin
:/sbin LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll procnto
}

[+script] startup-script = {
# Start up some consoles
devc-con -n 1 &
reopen /dev/con1
display_msg ""
display_msg Welcome to Neutrino on the ST5000

# Disk drivers (The default one and some fun others for your pleasure...)
display_msg Start the DiskOnChip driver
devb-doc doc addr=0xe8000 blk automount=hd0t77:/
# Wait for a bin for the rest of the commands (up to 30 secs)
waitfor /bin 30

# Some common servers
display_msg Start common servers
pipe &
mqueue &
devc-ser8250 -b 38400 -e -f &
waitfor /dev/ser1 30

# These env variables inherited by all the programs which follow
SYSNAME=nto
HOME=/
TERM=qansi
PATH=/proc/boot:/bin:/sbin:/usr/bin:/home/jwp
LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll
LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/lib:/lib/dll
TCL_LIBRARY=/home/jwp/
tcl_library=/home/jwp/

# Start the network -rlb
display_msg Start the network
io-net -d ne2000 -p qnet -p ttcpip if=en0:144.92.179.68:255.255.255.0 &

# Start tinit
display_msg Start tinit
/sbin/tinit TCL_LIBRARY=/home/jwp/ tcl_library=/home/jwp/

# Start the main shell
display_msg Start the main shell
reopen /dev/con1
[+session] sh
# [+session] login -p

}

# Cheat and make the /temp point to the shared memory area...
[type=link] /tmp=/dev/shmem

# Redirect console messages for syslog
# [type=link] /dev/console=/dev/con1

# Programs require the runtime linker (ldqnx.so) to be at a fixed location
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

# We use the "c" shared lib (which also contains the runtime linker)
libc.so

# Include the socket library
# libsocket.so

# Include the hard disk files so we can access files on the disk
libcam.so
io-blk.so
# filesystem required shared libs
cam-disk.so
fs-qnx4.so

# The files above this line can be shared by mutiple processes
# Executables must currently be below this line
[data=copy]

# Include DiskOnChip driver.
../doc.6.2/devb-doc

# Include a console driver
devc-con

/etc/config/ttys {
ser2 "/bin/sh" ansi on
}

************************************************
listing of selected directories and files on target

bin
dev
etc
lib
net
proc
sbin
usr

directory bin

cat
chgrp
chmod
chown
cp
dd
df
du
echo
false
hostname
kill
ln
login
logout
ls
mkdir
more
mount
mv
ps
pwd
rm
sh
shutdown
sin
slay
stty
true
umount

directory dev

con1
hd0
hd0t77
io-net
kbd
mem
netmgr
null
pipe
ptyp0
ptyp1
ptyp2
ptyp3
ptyp4
ptyp5
ptyp6
ptyp7
ser1
ser2
shmem
socket
text
tty
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4
ttyp5
ttyp6
ttyp7
zero

directory etc

config
inetd.conf
services

directory lib

dll
libc.a
libc.so
libc.so.1
libc.so.2
libcS.a
libcam.so
libcam.so.1
libcam.so.2
libcpp.a
libcpp.so
libcpp.so.2
libcpp.so.2a
libcppS.a
libm.so
libm.so.2
libsocket.so
libsocket.so.2

directroy lib/dll

devn-ne2000.so
npm-qnet.so
npm-tcpip-v4.so
npm-tcpip-v6.so
npm-tcpip.so
npm-ttcpip.so

directory proc

1
10
12300
2
3
4
5
6
7
8
8203
9
boot
ipstats
qnetstats

directory sbin

devc-pty
devc-ser8250
ifconfig
io-net
mqueue
pipe
tinit

directory usr

bin
lib
sbin
bin
lib
sbin

directory usr/sbin

ftpd
inetd
telnetd

*********************************************************************
output of sin


procnto 1 0 0 0 0 4331226
devc-con 2 44K 56K 4K 516K 568
devb-doc 3 128K 5253K 32K 608K 12968
pipe 4 16K 52K 20K 912K 75
mqueue 5 12K 36K 4K 516K 67
devc-ser8250 6 28K 56K 4K 516K 81
io-net 7 56K 460K 48K 1581K 23872
tinit 8 8K 36K 8K 516K 73
sh 9 148K 72K 8K 516K 158
sh 10 148K 72K 4K 516K 81
devc-pty 8203 28K 68K 4K 516K 88
inetd 12300 36K 68K 8K 516K 121
sin 53261 84K 44K 8K 516K 92

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 5:51 pm

Brian K. Hlady wrote:
Is it possible for you to post your build file, and inetd.conf, please?

Cheers,
-Brian
Here is the inetd.conf file. It is the vanilla one copied from the host...

# @(#)inetd.conf 1.23 90/01/03 SMI
#
# Configuration file for inetd.
#
# To re-configure the running inetd process, edit this file, then
# send the inetd process a SIGHUP.
#
#
# Internet services syntax:
# <service_name> <socket_type> <proto> <flags> <user> <server_pathname>
<args>
#
# Time service is used for clock syncronization.
#
#time stream tcp nowait root internal
#time dgram udp wait root internal

#
# Ftp and telnet are standard Internet services.
#
ftp stream tcp nowait root /usr/sbin/ftpd in.ftpd -l
telnet stream tcp nowait root /usr/sbin/telnetd in.telnetd

#
# Shell, login, exec are BSD protocols.
#
#shell stream tcp nowait root /usr/sbin/rshd in.rshd
#login stream tcp nowait root /usr/sbin/rlogind in.rlogind
#exec stream tcp nowait root /usr/sbin/rexecd in.rexecd

# Tftp service is provided primarily for booting. Most sites run this
# only on machines acting as "boot servers".
#
#tftp dgram udp wait root /usr/sbin/tftpd in.tftpd

# Systat and netstat give out user information which man be
# valuable to potential "system crackers." Many sites choose to disable
# some or all of these services to improve security.
#
#systat stream tcp nowait root /bin/ps ps -auwwx
#netstat stream tcp nowait root /usr/bin/netstat netstat -f inet

# IPv6 services.
# The only difference with the above is "tcp6" instead of "tcp".
# Be sure to enable both "tcp" and "tcp6" when you need service for
# both IPv4/v6.
#
#ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
-ll
telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd
#shell stream tcp6 nowait root /usr/sbin/rshd rshd -L
#login stream tcp6 nowait root /usr/sbin/rlogind rlogind
-L
#tftp dgram udp6 wait root /usr/sbin/tftpd tftpd
-l -s /tftpboot


#
# Neutrino specific services
#
#pidin stream tcp nowait root /bin/pidin pidin
#pidinmem stream tcp nowait root /bin/pidin pidin mem
#pidinarg stream tcp nowait root /bin/pidin pidin arg
#pidinenv stream tcp nowait root /bin/pidin pidin env
#pidinsig stream tcp nowait root /bin/pidin pidin sig
#phrelay stream tcp nowait root /usr/bin/phrelay phrelay -x

#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
discard stream tcp nowait root internal
discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#daytime dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 5:52 pm

Mario Charest wrote:
"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.
Those are both present.
If I fire up inetd on host system and connect from the target,
things are just fine. The one difference I have noted is that
inetd -d on the host system has a line indicating "excle <name of
program>"
(I hope I spelled that correctly), whereas the target's
inetd -d output does not generate that particular line when login
attempts were made. I tried brining over the libc.so library
to see if that would take care of it, but no go.

It seems I must be missing SOMETHING, but I have not been able
to figure out what this is from the documentation nor from the
error messages (there aren't any).

Any ideas?

Richard B.

Xiaodan Tang

Re: inetd failure?

Post by Xiaodan Tang » Fri Jan 31, 2003 5:58 pm

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.
You also /etc/protocols depends on what service program running.

-xtang

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 7:45 pm

Xiaodan Tang wrote:
Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu> wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang
I copies /etc/protocols over from the host, and restarted inetd. This
did not change anything...

Rich B.

Xiaodan Tang

Re: inetd failure?

Post by Xiaodan Tang » Fri Jan 31, 2003 7:53 pm

Quick test. (for telnetd).

On your target, run "telnetd -debug 3000" (it won't return to prompt, but
it's ok).
From another host, "telnet <target_ip> 3000".

Does the telnet works ? If it is not, does it say anything ?

-xtang

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1ej09$t01$1@inn.qnx.com...
Xiaodan Tang wrote:


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu
wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang

I copies /etc/protocols over from the host, and restarted inetd. This
did not change anything...

Rich B.

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Fri Jan 31, 2003 10:27 pm

Xiaodan Tang wrote:
Quick test. (for telnetd).

On your target, run "telnetd -debug 3000" (it won't return to prompt, but
it's ok).
From another host, "telnet <target_ip> 3000".

Does the telnet works ? If it is not, does it say anything ?

-xtang
telnet works in this mode; no "debugging" output shows up on the
host or the target.

Rich

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1ej09$t01$1@inn.qnx.com...
Xiaodan Tang wrote:


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu
wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang

I copies /etc/protocols over from the host, and restarted inetd. This
did not change anything...

Rich B.

Xiaodan Tang

Re: inetd failure?

Post by Xiaodan Tang » Sat Feb 01, 2003 5:45 pm

Good, then it's not problems of telnetd or config file. But some how inetd
can't spawn the telnetd.
Only thing I can think of is the /etc/inetd.conf have different position of
the binary. (Like it is trying
to spawn /sbin/telnetd, but you have telnetd in /usr/sbin/telnetd or some
thing like that...)

It would be helpful to see your /etc/inetd.conf file, and the inetd -d
output (from the time you start
it), and the failure message from telnet.

-xtang

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1esh2$9jq$1@inn.qnx.com...
Xiaodan Tang wrote:

Quick test. (for telnetd).

On your target, run "telnetd -debug 3000" (it won't return to prompt,
but
it's ok).
From another host, "telnet <target_ip> 3000".

Does the telnet works ? If it is not, does it say anything ?

-xtang


telnet works in this mode; no "debugging" output shows up on the
host or the target.

Rich


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1ej09$t01$1@inn.qnx.com...
Xiaodan Tang wrote:


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote
in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu
wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang

I copies /etc/protocols over from the host, and restarted inetd. This
did not change anything...

Rich B.

Richard Bonomo,6289 Chamb

Re: inetd failure?

Post by Richard Bonomo,6289 Chamb » Mon Feb 03, 2003 9:54 pm

If that is the problem, why does telnetd -debug not work when it uses
the default port?

I have already posted configuration information in my last responses
to Brian Hlady on this newsgroup (you should be able to see them). I'll
see if I can capture the output of inted -d and post it
on this sub-thread.

Thanks!

Rich

Xiaodan Tang wrote:
Good, then it's not problems of telnetd or config file. But some how inetd
can't spawn the telnetd.
Only thing I can think of is the /etc/inetd.conf have different position
of the binary. (Like it is trying
to spawn /sbin/telnetd, but you have telnetd in /usr/sbin/telnetd or some
thing like that...)

It would be helpful to see your /etc/inetd.conf file, and the inetd -d
output (from the time you start
it), and the failure message from telnet.

-xtang

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1esh2$9jq$1@inn.qnx.com...
Xiaodan Tang wrote:

Quick test. (for telnetd).

On your target, run "telnetd -debug 3000" (it won't return to prompt,
but
it's ok).
From another host, "telnet <target_ip> 3000".

Does the telnet works ? If it is not, does it say anything ?

-xtang


telnet works in this mode; no "debugging" output shows up on the
host or the target.

Rich


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1ej09$t01$1@inn.qnx.com...
Xiaodan Tang wrote:


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote
in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683," <bonomo@sal.wisc.edu
wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly
established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang

I copies /etc/protocols over from the host, and restarted inetd. This
did not change anything...

Rich B.

Xiaodan Tang

Re: inetd failure?

Post by Xiaodan Tang » Mon Feb 03, 2003 10:06 pm

It is NOT working with default port, BUT WORKING with port like "3000" ?

Hm, are you starting it as root ? Did you kill inetd (and probably do a
netstat -na)
to make sure no one is listening on port 23 before you do a "telnetd -debug
23" ?

-xtang

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1mnlv$156$1@inn.qnx.com...
If that is the problem, why does telnetd -debug not work when it uses
the default port?

I have already posted configuration information in my last responses
to Brian Hlady on this newsgroup (you should be able to see them). I'll
see if I can capture the output of inted -d and post it
on this sub-thread.

Thanks!

Rich

Xiaodan Tang wrote:

Good, then it's not problems of telnetd or config file. But some how
inetd
can't spawn the telnetd.
Only thing I can think of is the /etc/inetd.conf have different position
of the binary. (Like it is trying
to spawn /sbin/telnetd, but you have telnetd in /usr/sbin/telnetd or
some
thing like that...)

It would be helpful to see your /etc/inetd.conf file, and the inetd -d
output (from the time you start
it), and the failure message from telnet.

-xtang

Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote in
message news:b1esh2$9jq$1@inn.qnx.com...
Xiaodan Tang wrote:

Quick test. (for telnetd).

On your target, run "telnetd -debug 3000" (it won't return to prompt,
but
it's ok).
From another host, "telnet <target_ip> 3000".

Does the telnet works ? If it is not, does it say anything ?

-xtang


telnet works in this mode; no "debugging" output shows up on the
host or the target.

Rich


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu> wrote
in
message news:b1ej09$t01$1@inn.qnx.com...
Xiaodan Tang wrote:


Richard Bonomo,6289 Chamberlin,263-4683, <bonomo@sal.wisc.edu
wrote
in
message news:b1eccp$li7$3@inn.qnx.com...
Mario Charest wrote:


"Richard Bonomo,6289 Chamberlin,263-4683,"
bonomo@sal.wisc.edu
wrote
in
message news:b1ck48$jpf$1@inn.qnx.com...
I recently determined that it would be wise to be able to
connected to a target system I am setting up via telnet and
ftp.
(I don't think that ssh is available yet...)

I put inetd, inetd.conf, ftpd, and telnetd on the target
system, and inetd starts up without errors (inetd -d output
seems OK), but so far every attempt to connect has failed.
The connection is closed as soon as it is supposedly
established.


Make sure you have files /etc/services and /etc/inetd.conf.



Those are both present.

You also /etc/protocols depends on what service program running.

-xtang

I copies /etc/protocols over from the host, and restarted inetd.
This
did not change anything...

Rich B.


Post Reply

Return to “qdn.public.bsp”