1829136 Members
2763 Online
109986 Solutions
New Discussion

Re: Telnet

 
SOLVED
Go to solution
muna_1
Frequent Advisor

Re: Telnet

[root@localhost root]# rpm -qa|grep telnet
telnet-0.17-26.EL3.2
telnet-server-0.17-26.EL3.2
telnet-0.17-26
[root@localhost root]# cd /etc/xinetd.d/
[root@localhost xinetd.d]# vi telnet


____________________

[root@localhost xinetd.d]# ls
chargen echo imaps kshell sgi_fam time-udp
chargen-udp echo-udp ipop2 ktalk telnet
cups-lpd eklogin ipop3 pop3s telnet.rpmnew
daytime gssftp klogin rsync tftp
daytime-udp imap krb5-telnet services time


here you can see that i have telnet and telnet.rpmnew
when i try to edit telnet nothing there to edit but for the telnet.rpmnew i am getting the following:

# 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
}

~
~
~
~
~
~
~
~
~
"telnet.rpmnew" 14L, 304C 1,1 All


so you can see that i can't do disable= no in telnet coz nothing there !!


~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"telnet" 1L, 1C 1,0-1 All



now did you know what is my problem !
Delrish
Trusted Contributor

Re: Telnet

Ok, try to make telnet file:
rm -f telnet
cp telnet.rpmnew telnet

Now, you have two similar file (telnet and telnet.rpmnew ). you should work on telnet file and go ahead in procedure.

Alireza
muna_1
Frequent Advisor

Re: Telnet

thanx alot guyz there were a conflict coz i was having telnet and telnet.rpmnew

i removed telnet and rename telnet.rpmnew as telnet and then i removed telnet.rpmnew also , so the only one i have now telnet

this the steps i followed:

[root@localhost root]# cd /etc/xinetd.d/
[root@localhost xinetd.d]# ls
chargen echo imaps kshell sgi_fam time-udp
chargen-udp echo-udp ipop2 ktalk telnet
cups-lpd eklogin ipop3 pop3s telnet.rpmnew
daytime gssftp klogin rsync tftp
daytime-udp imap krb5-telnet services time
[root@localhost xinetd.d]# rm -f telnet
[root@localhost xinetd.d]# ls
chargen echo imaps kshell sgi_fam
chargen-udp echo-udp ipop2 ktalk telnet.rpmnew
cups-lpd eklogin ipop3 pop3s tftp
daytime gssftp klogin rsync time
daytime-udp imap krb5-telnet services time-udp
[root@localhost xinetd.d]# cp telnet.rpmnew telnet
[root@localhost xinetd.d]# ls
chargen echo imaps kshell sgi_fam time-udp
chargen-udp echo-udp ipop2 ktalk telnet
cups-lpd eklogin ipop3 pop3s telnet.rpmnew
daytime gssftp klogin rsync tftp
daytime-udp imap krb5-telnet services time

[root@localhost xinetd.d]# telnet 16.53.208.173
Trying 16.53.208.173...
telnet: Unable to connect to remote host: Connection refused
[root@localhost xinetd.d]# vi telnet
[root@localhost xinetd.d]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost xinetd.d]# rm -f telnet.rpmnew
[root@localhost xinetd.d]# ls
chargen daytime-udp gssftp ipop3 ktalk sgi_fam time-udp
chargen-udp echo imap klogin pop3s telnet
cups-lpd echo-udp imaps krb5-telnet rsync tftp
daytime eklogin ipop2 kshell services time
[root@localhost xinetd.d]# cd
[root@localhost root]# telnet
telnet> open
(to) 16.53.208.173
Trying 16.53.208.173...
Connected to 16.53.208.173 (16.53.208.173).
Escape character is '^]'.
Red Hat Enterprise Linux AS release 3 (Taroon Update 2)
Kernel 2.4.21-15.EL on an ia64
login: root
Password:
Last login: Thu Dec 22 14:03:16 from 16.53.209.122
You have new mail.
[root@localhost root]#


Thanks alot ^______^ I am realy glad to solve it ....
Delrish
Trusted Contributor

Re: Telnet

Please assign points to the answers
muna_1
Frequent Advisor

Re: Telnet

Thank you for reminding me , Done ^_^

Thank you all for ur help

CLOSED
muna_1
Frequent Advisor

Re: Telnet

<>