Practical Tips: Remove unnecessary services in Linux

Source: Internet
Author: User
Practical Tips: Remove unnecessary services in Linux-general Linux technology-Linux technology and application information. For more information, see the following. After you have installed Linux, I believe many of you may want to provide some amazing services, such as WWW, mail, or FTP services. However, these services are potentially dangerous. Many hackers use the services you opened to destroy the website! Basically, what is troublesome is the Trojan Horse program, which uses your website as a trunk site to attack the Target target of hackers. So ??? Too many? After inux, remove unnecessary programs or services! To ensure your network security!
 
Close some services:
 
After you start Linux's network functions, we recommend that you disable some services on the network. These services are generally not used! Therefore, your daily behaviors (such as e-mail, WWW, and FTP) will not be affected. Since daily behaviors will not be affected, the security of your network can be enhanced, of course it is required ??? Br/>
Close some services:
 
There are many ways to disable it. I usually use/usr/sbin/setup to disable it, but if I use this method to disable it, I need to restart Linux, which is a bit more troublesome, if you are using the RedHat6.1 system of our webpage, run/usr/sbin/setup! Then select System services to open all Service Startup projects to the following:
 
Atd
 
Crond
 
Inet
 
Keytable
 
Kudzu
 
Network
 
Random
 
Sendmai (if you have enabled the e-mail Service)
 
Smb (if you have enabled the SAMBA Service)
 
Syslog
 
Xfs (if you run X-windows)
 
Other services are enabled as required ??? Carrier ?? Why is it true? What kind of models do you have? Why is it true that you can throw a complaint ??? Qiao xiaxiao raised his father and asked him to raise his father ?? Modulo? Br/>
Set the service at startup:
 
There is also a file set for the service at startup, that is,/etc/inetd. conf file. In this file, you can enable the remaining four services and annotate other services (add a # symbol ).
 
Ftp stream tcp nowait root/usr/sbin/tcpd in. proftpd
 
Telnet stream tcp nowait root/usr/sbin/tcpd in. telnetd
 
Pop-3 stream tcp nowait root/usr/sbin/tcpd ipop3d
 
Imap stream tcp nowait root/usr/sbin/tcpd imapd
 
In addition, if your RedHat version is later than 7.0, the Directory of various services will be in the/etc/xinetd. d directory! Because xinetd places all services individually in different files, you need to correct all files! Generally, you only need to change disable = no in each file to disable = yes!
 
Remove some packages from Linux:
 
Although we have already turned off some services, we 'd better remove this suite from him! The following kits are unnecessary and you can remove them:
 
Git
 
Finger
 
Talk
 
Ytalk
 
Ucd-snmp-utils
 
In addition, some ftp suites can be removed! (If you don't need it !) The removal method is very simple. Use rpm:
 
Rpm-e git finger talk ytalk ucd-snmp-utils
 
Reboot:
 
Don't teach me this! Reboot.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.