LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-28-2006, 01:32 AM   #1
makkays
Member
 
Registered: Oct 2006
Posts: 36

Rep: Reputation: 15
How to stop FTP and Telnet services?


hello,

I have stopped telnet and wu-ftp serivices by following command:

% chkconfig telnet off
% chkconfig wu-ftpd off
when i ftp and telnet they are not availble after it.

but when i check the following file /etc/services i find that ftp is on on both TCP/UDP and similrly telnet is available on TCP/UDP both protocols.

Now do i have to comment out the refrenced lines in file /etc/services or are the services closed by above mentioned command.

kindly guide me

makkays
 
Old 11-28-2006, 02:15 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
/etc/services is only a name-to-number/number-to-name mapping table. That file does not disable or enable any services.
 
Old 11-28-2006, 10:25 PM   #3
makkays
Member
 
Registered: Oct 2006
Posts: 36

Original Poster
Rep: Reputation: 15
thanks,

kindly confirm whether After running "chkconfig telnet off " it means that telnet services are off on both TCP/udp ports? and

also is this true that name-to-number/number-to-name mapping is created on installation of OS, so even if i am not using a perticular service the mapping will be there by default.

regards

makkays
 
Old 11-29-2006, 02:05 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by makkays
kindly confirm whether After running "chkconfig telnet off " it means that telnet services are off on both TCP/udp ports?
There is only one telnet service/daemon. Switching it 'off' only means that it does not run (regardless of the protocol).

Quote:
Originally Posted by makkays
also is this true that name-to-number/number-to-name mapping is created on installation of OS, so even if i am not using a perticular service the mapping will be there by default.
Yes, although I'm quite sure that it's just a file that is copied from the installation CD during installation (so not really created).
 
Old 11-29-2006, 02:28 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Telnet and FTP only use TCP. The fact that they have reserved UDP ports is from the legacy days of the early Internet.
 
Old 11-29-2006, 02:48 PM   #6
imran-rhce
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
I want to mention that telnet is controlled by xinetd service in latest version's of Redhat Linux

"Chkconfig telnet off" stop's the telnet session & can also be confirmed from /etc/xinetd.d/telnet with "disable = yes" option

you can alternatively make use of Tcp_wrappers(/etc/hosts.allow) to control telnet
 
Old 11-29-2006, 11:42 PM   #7
makkays
Member
 
Registered: Oct 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks everybody.the concept is really clear now

regards

makkays
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable and Disable security services(FTP,TELNET,FINGER.....) pasupuleti Linux - Security 7 09-05-2006 07:27 AM
How to enable the ftp, telnet/ssh services in Fedora 4 cyber.juggernaut Linux - Networking 2 02-22-2006 08:30 PM
How do I stop services from restarting after I stop them? M$ISBS Linux - Software 3 10-27-2005 08:13 PM
stop and start services hoover93 SUSE / openSUSE 5 12-29-2004 02:48 PM
stop services matwau Linux - Networking 2 10-01-2003 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration