Starting telnetd?

I’ve installed RTP and am trying to get telnetd to start up
automatically when the system boots. Looking at /etc/inetd.conf, I see
that telnet is supposed to start automatically. However, when I boot the
system, telnetd is not running.

If I login to RTP as root, I can start telnetd manually

/usr/sbin/telnetd -debug -Q &

I find that I need to specify -debug or I get “getpeername not
implemented” reported and telnetd dies. Any clues?

Also, I see that the entry in inetd.conf specifies the telnetd command as

/usr/sbin/telnetd in.telnetd -Q

What is “in.telnetd”, and what purpose does it serve?

And, most importantly, how can I configure RTP so telnetd automagically
starts when the system boots?

Thanks in advance,
Eric

All you should need to do is start inetd as root. It listens
on port 23 and spawns telnetd when someone connects to that
port.

In qdn.public.qnxrtp.newuser Eric Berdahl <berdahl@serendipity.org> wrote:
: I’ve installed RTP and am trying to get telnetd to start up
: automatically when the system boots. Looking at /etc/inetd.conf, I see
: that telnet is supposed to start automatically. However, when I boot the
: system, telnetd is not running.

: If I login to RTP as root, I can start telnetd manually

: /usr/sbin/telnetd -debug -Q &

: I find that I need to specify -debug or I get “getpeername not
: implemented” reported and telnetd dies. Any clues?

This is because when you start it from the command line, it’s stdin
file descriptor is not a socket. inetd takes care of this for you.

: Also, I see that the entry in inetd.conf specifies the telnetd command as

: /usr/sbin/telnetd in.telnetd -Q

: What is “in.telnetd”, and what purpose does it serve?

“in.telnetd” is the argv[0] that inetd passes to /usr/sbin/telnetd
when it is spawned. It’s just a string and only serves as a hint
as to who started telnetd.

: And, most importantly, how can I configure RTP so telnetd automagically
: starts when the system boots?

start inetd. Maybe put it in your /etc/rc.d/rc.local file (make sure it’s
executable).

-seanb

In article <8tsp8l$4ak$1@nntp.qnx.com>, Sean Boudreau <seanb@qnx.com>
wrote:

: And, most importantly, how can I configure RTP so telnetd automagically
: starts when the system boots?

start inetd. Maybe put it in your /etc/rc.d/rc.local file (make sure
it’s
executable).

Rock and roll! That’s the money, right there.

There was no rc.local file, so I created one that runs inetd. Set that
file to be executable and inetd starts at boot just fine.

Thanks for the help,
Eric