?
Solved

Problem regarding Telnet

Posted on 2003-03-05
24
Medium Priority
?
281 Views
Last Modified: 2010-03-18
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
Comment
Question by:paluindian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 8
24 Comments
 
LVL 6

Expert Comment

by:mbarbos
ID: 8075755
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
 

Author Comment

by:paluindian
ID: 8076034
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
 
LVL 6

Expert Comment

by:mbarbos
ID: 8076099
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:paluindian
ID: 8078187
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
 
LVL 6

Expert Comment

by:mbarbos
ID: 8078402
Can you check if /usr/sbin/in.telnetd is there ?
0
 

Author Comment

by:paluindian
ID: 8082198
no there is no file like /usr/sbin/in.telnetd.
I wonder why not?
0
 
LVL 6

Accepted Solution

by:
mbarbos earned 200 total points
ID: 8082519
Hmm, that's not how it should be...

Try to install telnet-server-xxxx...
0
 

Author Comment

by:paluindian
ID: 8083426
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
 
LVL 6

Expert Comment

by:mbarbos
ID: 8083722
Any news ?
0
 

Author Comment

by:paluindian
ID: 8085631
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
 

Author Comment

by:paluindian
ID: 8085666
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
 

Author Comment

by:paluindian
ID: 8085711
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
 

Author Comment

by:paluindian
ID: 8085756
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
 

Author Comment

by:paluindian
ID: 8085784
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
 
LVL 6

Expert Comment

by:mbarbos
ID: 8086408
Did you restart xinetd ?
0
 
LVL 6

Expert Comment

by:mbarbos
ID: 8086416
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
 

Author Comment

by:paluindian
ID: 8086683
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
 
LVL 6

Expert Comment

by:mbarbos
ID: 8086734
Can you please post the result of

netstat -an | grep tcp

And also the content of your /etc/xinetd.d/telnet file
0
 

Author Comment

by:paluindian
ID: 8090712
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
 

Author Comment

by:paluindian
ID: 8095747
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
 

Expert Comment

by:CleanupPing
ID: 9077728
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question