[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Problem regarding Telnet

Hi,
I was going through all telnet questions and answers in this forum...but I have very basic problem is I can not find telnet under /etc/xinetd.d even though I have installed telent ...I can find it by using rpm -qa | grep telnet and it gives me telnet.0.17-20. I can find telnet under /usr/bin/telnet. So I copied this file to /etc/xinetd.d/telnet but now telnet is not working.Previously telnet used to work from my machine but any other windows machine would not be able to telnet my machine. I don't know what could be the problem.
Again on my system I can not find in.telnetd.
It is always with my system...I can not find installed softwares where they are supposedto be according to documentation. Same happened while configuring samba...as I could not find my files under /usr/local/samba I messed all the configuration and eventually I uninstalled it all.
Please tell me what could be the problem for telnet and if possible for samba also.
Thank you,
Pallavi
0
paluindian
Asked:
paluindian
  • 12
  • 8
1 Solution
 
mbarbosCommented:
Try to reinstall/verify/upgrade the packages. Reinstall xinetd for sure.

the /etc/xinetd/telnet file is a text file that tells xinetd what to do when port 23 is accessed. It should look something like:

service telnet
{
    flags          = REUSE
    socket_type    = stream    
    wait           = no
    user           = root
    server         = /usr/sbin/in.telnetd
    log_on_failure += USERID
}

Also, it can be that telnet is disabled, so have a look at /etc/xinetd.conf and at /etc/xinetd files (they are all text files) and you'll figure out if telnet is defined and enabled :)

Probably you'll have to reinstall samba too.

If you tell us what distribution you are using, maybe we can tell you exactly how the configuration files are built.
0
 
paluindianAuthor Commented:
Hi,
I am using Redhat 7.3 and I'm connected through gateway to Win2K box.
Here is my /etc/xinetd.conf looks like

________________________________________

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
     instances               = 60
        log_type                = SYSLOG authpriv
        log_on_success          = HOST PID
        log_on_failure          = HOST
     cps               = 25 30
}

includedir /etc/xinetd.d

_____________________________________________________

I can not see any telnet entry in this. I can see all the files in /etc/xinetd.d ...as i tol you earlier there was no file named 'telnet' in /etc/xinetd.d I copied it from /usr/bin/telnet...now I can not edit any telnet file also can not run it. It gives me error like "can not execute binary file"
Again there is not in.telnetd in /usr/sbin....:-(
I'm sad :-(
Can you elaborate more on how can I solve this problem.
How to reinstall xinetd?
Thank you
Pallavi
0
 
mbarbosCommented:
Ok, delete the /etc/xinetd.d/telnet file.

Check if installed telnet-serve-xxxx. If not, install it.

If it is installed and you don't have a /etc/xinetd/telnet file, then create it with the following content:

service telnet
{
   flags          = REUSE
   socket_type    = stream    
   wait           = no
   user           = root
   server         = /usr/sbin/telnetd
   log_on_failure += USERID
}

I'm not sure if it is telnetd ot in.telnetd (It should be in.tel.., though)

If you get this file installed now, check for a "disabled=yes" line in it and change it to no.

Now restart xinetd

/etc/bin/telnet is the telnet client, not the serever
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
paluindianAuthor Commented:
Hi,
I'm sorry to irritate but I fully uninstalled telnet and again installed telnet-0.17-20.i386.rpm with command rpm -i telnet-0.17-20.i386.rpm. I think with this I should be able to get telnetd daemon but unfortuantelly I hava not succeeded in doing that. Please can you point out my mistake and tell me how should I start with my installation.
Thank You.
Pallavi
0
 
mbarbosCommented:
Can you check if /usr/sbin/in.telnetd is there ?
0
 
paluindianAuthor Commented:
no there is no file like /usr/sbin/in.telnetd.
I wonder why not?
0
 
mbarbosCommented:
Hmm, that's not how it should be...

Try to install telnet-server-xxxx...
0
 
paluindianAuthor Commented:
Hi,
I installed telnet-server and now I can see all required files :-)
Hopefully now I can telnet it from windows machine also...I have to start the box and then I'll tell you whats happening.
Thank you for everything....will come up with more smaba questions now.
Pallavi
0
 
mbarbosCommented:
Any news ?
0
 
paluindianAuthor Commented:
Hi again,
I can not connect from my windows box.
I've changed disable=no still I can not telnet.
What will be the problem.
Pallavi
0
 
paluindianAuthor Commented:
Hi again,
I can not connect from my windows box.
I've changed disable=no still I can not telnet.
What will be the problem.
Pallavi
0
 
paluindianAuthor Commented:
Hi again,
I can not connect from my windows box.
I've changed disable=no still I can not telnet.
What will be the problem.
Pallavi
0
 
paluindianAuthor Commented:
Hi again,
I can not connect from my windows box.
I've changed disable=no still I can not telnet.
What will be the problem.
Pallavi
0
 
paluindianAuthor Commented:
Hi again,
I can not connect from my windows box.
I've changed disable=no still I can not telnet.
What will be the problem.
Pallavi
0
 
mbarbosCommented:
Did you restart xinetd ?
0
 
mbarbosCommented:
Don't use the browser reload button because it will post again your comment, use the entry "reload this question" on left of the page.
0
 
paluindianAuthor Commented:
hi,
good to know that...even i was surprised to see my questions posted so many times.
Anyway...yes I did restart the xinetd.
0
 
mbarbosCommented:
Can you please post the result of

netstat -an | grep tcp

And also the content of your /etc/xinetd.d/telnet file
0
 
paluindianAuthor Commented:
output of netstat -an | grep tcp is as follows
tcp        0      0 0.0.0.0:32768           0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:32769         0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:9098            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:9099            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN      
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      
tcp        0      0 192.168.0.4:32785       216.239.57.100:80       ESTABLISHED
tcp        0      0 192.168.0.4:32781       166.90.133.231:80       ESTABLISHED

Contents of /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses \
#     unencrypted username/password pairs for authentication.
service telnet
{
     flags          = REUSE
     socket_type     = stream        
     wait          = no
     user          = root
     server          = /usr/sbin/in.telnetd
     log_on_failure     += USERID
     disable          = no
}


0
 
paluindianAuthor Commented:
Hi,
Even I can not telnet windows box.
I checked /etc/hosts.allow and /etc/hots.deny , those are empty.
what can be the problem?
0
 
CleanupPingCommented:
paluindian:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 12
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now