Link to home
Start Free TrialLog in
Avatar of paluindian
paluindian

asked on

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
Avatar of Mihai Barbos
Mihai Barbos
Flag of Switzerland image

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.
Avatar of paluindian
paluindian

ASKER

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
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
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
Can you check if /usr/sbin/in.telnetd is there ?
no there is no file like /usr/sbin/in.telnetd.
I wonder why not?
ASKER CERTIFIED SOLUTION
Avatar of Mihai Barbos
Mihai Barbos
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Any news ?
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
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
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
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
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
Did you restart xinetd ?
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.
hi,
good to know that...even i was surprised to see my questions posted so many times.
Anyway...yes I did restart the xinetd.
Can you please post the result of

netstat -an | grep tcp

And also the content of your /etc/xinetd.d/telnet file
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
}


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?
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.