You are not logged in.

#1 2009-08-15 00:30:24

B4RR13N705
Member
Registered: 2009-06-08
Posts: 87

[SOLVED] Cannot disable telnet

I dont know why, but telnet got installed in my archlinux, and i cant disable it, i edited /etc/xinet.d/telnet:

#/etc/xinet.d/telnet

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

Look that DISABLE = yes.
After this i restarted xinitd, sudo /etc/rc.d/xinetd restart, but nmap still says that telnet is open.
Also, telnet is not set at rc.conf.
Im running out of ideas...

Last edited by B4RR13N705 (2009-08-15 15:19:55)


OS -----> Arch Linux     DE -----> KDE4
CPU ---> 2.66GHz         RAM ---> 512 MB
SWAP -> 2 G                / -------> 10 G
/home -> 50 G             /boot ---> 64 MB

Offline

#2 2009-08-15 07:36:34

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: [SOLVED] Cannot disable telnet

Hello B4RR13N705!

Is there any related in your /etc/hosts.allow or /etc/hosts.deny ?

Offline

#3 2009-08-15 09:52:44

narada
Member
Registered: 2009-07-12
Posts: 34

Re: [SOLVED] Cannot disable telnet

If nothing else you can at least set an iptables rule to block port 23. You can also do as djszapi suggested and add to your hosts.* files.

Offline

#4 2009-08-15 15:19:36

B4RR13N705
Member
Registered: 2009-06-08
Posts: 87

Re: [SOLVED] Cannot disable telnet

narada wrote:

If nothing else you can at least set an iptables rule to block port 23.

This worked! thanx!


OS -----> Arch Linux     DE -----> KDE4
CPU ---> 2.66GHz         RAM ---> 512 MB
SWAP -> 2 G                / -------> 10 G
/home -> 50 G             /boot ---> 64 MB

Offline

#5 2009-08-16 00:30:52

ckristi
Member
From: Bucharest, Romania
Registered: 2006-11-21
Posts: 225

Re: [SOLVED] Cannot disable telnet

I think the correct syntax is "disabled = yes".


In love I believe and in Linux I trust

Offline

#6 2009-08-16 11:22:51

von_Wanderlust
Member
Registered: 2008-11-03
Posts: 67

Re: [SOLVED] Cannot disable telnet

You can remove telnet by uninstalling the inetutils package. Note that this package also includes talk, rsh, rlogin, rexec, and ftpd so make sure you don't need them. Although note that some security people (http://www.auscert.org.au/5816) say that these "r" programs are not very safe because like telnet they transmit data unencrypted, so it's not a bad idea to remove them if they are not needed. I uninstalled the inetutils package without any issues.

Offline

#7 2009-08-16 13:08:15

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [SOLVED] Cannot disable telnet

Pacman has to ability to tell what owns the file do

pacman -Qo /folder/package-file

and pacman will tell what program installed it.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB