2nd followup: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
I was not able to capture the output of inetd -d, so here is
a transcription of what the relevant lines appear to be:
*** partial quote from inetd -d output, and error messages by telnet client:
<first, inetd output>
ADD : telnet proto=tcp wait:max=0.40, user:group=root, builtin=0
server=/usr/sbin/telnetd policy=
<another line, almost identical, for tcp6>
<two ADD : discard lines referrring to tcp and udp>
FREE: telnet proto=tcp6, wait:max=0.40, user:group=root, builtin=0
server=/usr/sbin/telnetd policy=
<when I tried to telnet in from another QNX6 host, inetd produced this:>
someone wants telnet
accept, ctrl 3
36076 reaped, status 0x100
<on the host running the telnet client, this appears>
Trying <IP number>
Connected to <host name>
Connection closed by foreign host.
************ end of transcriptions
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.