1825007 Members
2786 Online
109678 Solutions
New Discussion юеВ

How to enable telnet?

 
SOLVED
Go to solution
Thomas Schler_1
Trusted Contributor

How to enable telnet?

Hi,

I try to enable logins via 'telnet'. For that, I've to edit /etc/inetd.conf. Here are the uncommented lines:

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
time stream tcp nowait root internal
time dgram udp wait root internal
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
login stream tcp nowait root /usr/sbin/tcpd in.rlogind -a
exec stream tcp nowait root /usr/sbin/tcpd in.rexecd
bpcd stream tcp nowait root /usr/openv/netbackup/bin/bpcd bpcd
vopied stream tcp nowait root /usr/openv/netbackup/bin/vopied vopied
bpjava-msvc stream tcp nowait root /usr/openv/netbackup/bin/bpjava-
msvc bpjava-msvc -transient

After re-starting the inetd, I thought, telnet sessions should now be enabled. But they arn't:

> telnet my_host
telnet my_host
Trying 111.111.111.111...
Connected to my_host.
Escape character is '^]'.
Connection closed by foreign host.

Did I forget something? What?
no users -- no problems
8 REPLIES 8
Mark Grant
Honored Contributor

Re: How to enable telnet?

The fact that you got connected suggests that inetd.conf and /etc/services at least allow you to connect to the machine and there are no firewall type issues.

However, in your case, telnetd is being started by "tcpd" and you should look at the man page for this. The section on "HOST NAME VERIFICATION" may be of interest.

If it starts to get a bit boring and you are on a trusted network, you can change /etc/inetd.conf to call in.inetd instelf instead of through "rcpd"

Never preceed any demonstration with anything more predictive than "watch this"
Joseph Loo
Honored Contributor

Re: How to enable telnet?

hi,

please read this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=139979

hope it help.

regards.
what you do not see does not mean you should not believe
Steven E. Protter
Exalted Contributor

Re: How to enable telnet?

cd /etc/xinetd.d

vi telnet or krb5-telnet in the case of the newer red hat products

Where it says disable=yes

make it say disable=no

Save the vile

service xinetd restart

Done.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Grant
Honored Contributor

Re: How to enable telnet?

Guys,

I don't think this is a Red Hat box. On the other hand, if it is a Red Hat, then that will explain the problem as editing inetd.conf will achieve nothing!
Never preceed any demonstration with anything more predictive than "watch this"
Thomas Schler_1
Trusted Contributor

Re: How to enable telnet?

Mark,

thanks for your hints. Meanwhile, I looked at the syslog, it says:

May 10 15:35:38 my_host in.telnetd[2868]: connect from 111.111.111.111 (111.111.111.111)
May 10 15:35:38 my_host in.telnetd[2868]: error: cannot execute /usr/sbin/in.telnetd: No such file or directory

And, in fact, /usr/sbin/in.telnetd is missing (??). A 'find /usr -name in.telnetd' didn't find anything.

How can it be that /usr/sbin/in.telnetd is missing? (Of course, I did not remove it by my own.)

Joseph, Steven,

at the moment, I do not plan to use xinetd.
no users -- no problems
Mark Grant
Honored Contributor
Solution

Re: How to enable telnet?

Maybe it was never installed. You could probably copy it from another machine.

It should be there. Mine is.
Never preceed any demonstration with anything more predictive than "watch this"
Francisco J. Soler
Honored Contributor

Re: How to enable telnet?

Hi,

have you installed telnet-server package?

I think is in the telnet-server package where in.telnetd is.

Frank.
Linux?. Yes, of course.
Thomas Schler_1
Trusted Contributor

Re: How to enable telnet?

Mark, Francisco,

thank you for help so far. I installed netbackup client software, and a telnet session is only needed for verifying that the netbackup installation can establish/accept network connection. For other things, I do not need telnet.

So, first, I want to check if netbackup works. I'd like to postpone the telnet problem, until I'm sure if I really need it.

Thank you.
no users -- no problems