I have the following services running:
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
tcsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
xinetd based services:
chargen-dgram: off
chargen-stream: off
daytime-dgram: off
daytime-stream: off
discard-dgram: off
discard-stream: off
echo-dgram: off
echo-stream: off
tcpmux-server: off
telnet: on
time-dgram: off
time-stream: off
why i still got "-bash: telnet: command not found " error?
Thanks
Best Answer
The RHEL/CentOS 5.4 telnet client is installed at
/usr/kerberos/bin/telnet
. Your $PATH variable thus needs/usr/kerberos/bin
listed. (Preferably before /usr/bin) If for some reason you don't have that file installed, it's part of the packagekrb5-workstation
. Installing that package manually or via YUM should give you what you need.You can check quick with
which telnet
to see if it's found anywhere in your path.echo $PATH
to see what directories are being checked, andrpm -q krb5-workstation
to see if you have the package installed.--Christopher Karel