View Full Version : [ubuntu] Telnet service not running
Thyagaraj
August 27th, 2010, 02:52 PM
I have telnet service intalled(apt-get install telnetd), but when I type telnet, I'm getting the following error:
bash: /usr/bin/telnet: No such file or directory
please any one help me...
Bachstelze
August 27th, 2010, 03:29 PM
You also need to install a Telnet client, but why would you want to do that?
Thyagaraj
August 28th, 2010, 06:30 AM
I'm using zabbix monitoring tool. It has email notification configured with postfix to notify to my gmail account.
The same settings working on my local machines and I could see mails from zabbix but it is not working on real servers.
In a forum it is said something like we can check if we could connect or if smtp working or not with the command "telnet localhost 25". This command is working fine on local machines and if I type only telnet, I could see the telnet prompt(telnet>). If I use this command on servers I'm getting above posted error.
Thank you!
BkkBonanza
August 28th, 2010, 08:42 AM
To do the checks you want you need the telnet client not the server.
So you should install telnet not telnetd.
Telnet is for connecting to something.
Telnetd is a daemon that listens for connections, which is not what you want.
sudo apt-get remove telnetd
sudo apt-get install telnet
Thyagaraj
August 30th, 2010, 05:55 AM
I removed telnetd and installed telnet, but no change:(
BkkBonanza
August 30th, 2010, 05:57 AM
No change, how? Indicate what you typed and what message you got back.
Try whereis telnet it should indicate where the program is installed. Maybe it is not in /usr/bin.
Thyagaraj
August 30th, 2010, 06:07 AM
It is under /usr/bin directory. I typed telnet. I'm getting the same error like this below
bash: /usr/bin/telnet: No such file or directory
BkkBonanza
August 30th, 2010, 06:54 AM
That message is telling you it isn't under /usr/bin - so which is it?
It's either there or it isn't there.
What do you get back from ls -lsa /usr/bin/telnet
And then what from echo $PATH
Thyagaraj
August 30th, 2010, 11:26 AM
The output of ls -lsa /usr/bin/telnet is:
88 -rwxr-xr-x 1 root root 84096 2010-08-27 07:02 /usr/bin/telnet
but this is differenet on my local machine(with link to /etc/alternatives/telnet)
The output of echo $PATH is:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
BkkBonanza
August 30th, 2010, 11:44 AM
That makes no sense then. The program is there and has correct permissions and the directory is in the path. It should work.
On my machine with 10.04 it has the link to /etc/alternatives, which in turn links back to /usr/bin/telnet.netkit. I guess this is some recent change but it works fine for me. I don't think that is wrong but I don't know when it was changed. I very rarely ever use telnet so wouldn't have noticed.
Thyagaraj
September 4th, 2010, 04:14 AM
Thanks Bonanza, some how I made telnet to work.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.