Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-28-2006, 01:32 AM
|
#1
|
Member
Registered: Oct 2006
Posts: 36
Rep:
|
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
|
|
|
11-28-2006, 02:15 AM
|
#2
|
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:
|
/etc/services is only a name-to-number/number-to-name mapping table. That file does not disable or enable any services.
|
|
|
11-28-2006, 10:25 PM
|
#3
|
Member
Registered: Oct 2006
Posts: 36
Original Poster
Rep:
|
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
|
|
|
11-29-2006, 02:05 AM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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).
|
|
|
11-29-2006, 02:28 AM
|
#5
|
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:
|
Telnet and FTP only use TCP. The fact that they have reserved UDP ports is from the legacy days of the early Internet.
|
|
|
11-29-2006, 02:48 PM
|
#6
|
LQ Newbie
Registered: Nov 2006
Posts: 2
Rep:
|
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
|
|
|
11-29-2006, 11:42 PM
|
#7
|
Member
Registered: Oct 2006
Posts: 36
Original Poster
Rep:
|
Thanks everybody.the concept is really clear now
regards
makkays
|
|
|
All times are GMT -5. The time now is 02:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|