Linux security tips (2)

Source: Internet
Author: User
Article Title: Linux security tips (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
After the above work is complete, we will install the software package. In general, Linux can provide powerful services, but these services are not all necessary, and some may cause security risks. We only need the necessary items, that is, the software package. By selecting the "Select individual package", you can Select or not to Select a separate software package during subsequent installation.
We have installed LINUX machines without a graphical interface. Installing the linux gui on the server means higher security performance, less CPU time, and less memory, for more processing capabilities, we can select the following software package for installation:
* Networked Workstation
* Network Management Workstation
* Utilities
Next, we should select a single software package (don't bother). The installer will list the software package groups that can be selected. Each Software Package group contains independent software, and some software is listed below, do not install these software because of security issues:
Applications/Archiving: dump
Applications/file: git
Applications/Internet: finger, ftp, fwhois, ncftp, rsh, rsync, talk, telnet
Applications/Publishing: ghosts extensions, ghosts extensions-fonts, mpage, rhs-printfilters
Applications/System: arpwatch, bind-utils, knfsd-clients, procinfo, rdate, rdist, screen, ucd-snmp-utils
Documentation: indexhtml
System Environment/Base: chkfontpath, yp-tools
System Environment/Daemons: XFree86-xfs, lpr, pidentd, portmap, routed, rusers, rwho, tftp, ucd-snmp, ypbind
System Environment/Libraries: XFree86-libs, libpng
User Interface/X: XFree86-75dpi-fonts, urw-fonts
I will explain why not install these software:
Applications/Archiving:
The dump package includes the dump and restore programs. Dump is used to check files in the file system to determine which backups are required, and then copy these files to disks, tapes, or other media. It is unnecessary for us to implement it in other ways;
Applications/File:
GIT can browse the file system, view text files or binary files, view or stop processes, and include other tools and SHELL scripts, which are not necessary;
Applications/Internet:
FINGER, FTP, TELENT, FWHOIS, and ncftp are absolute security risks for servers. Intruders can use these software to HACK servers and query and log on to other servers, so do not;
Applications/Publishing:
Ghosts interpreter is a set of software, including: Posts interpreter (tm) interpreter, C language function library (ghosts interpreter function library implements the graphics * for the Posts interpreter language) and PDF file interpreter. Ghosts internal font is a number of Posts internal (tm) fonts, which are used by the ghosts internal interpreter. These fonts are also shared by ghosts fonts and X11 fonts. Mpage outputs plain text files and Posts profiles (tm) files to the Posts profiles printer, which can print more than one page of content on a piece of paper. (Generally, no printer is installed on the server, so this is unnecessary ).
Rhs-printfilter includes a set of print drivers, which are mainly used in combination with the RedHat pinttool. These are generally unnecessary for servers.
Applications/System:
Arpwatch includes two programs: arpwatch and arpsnmp, both of which are network monitoring programs and are used to monitor network traffic between Ethernet and FDDI and establish a database between the ethernet address and IP address, if the relationship between the two time changes, it will be reported by EMAIL. (Not necessary)
Dind-utils is used to query DNS servers to obtain information about hosts on the Internet. (We can do it by ourselves)
Knfsd-clients includes the showmount program, which is used to query the mount daemon of a remote host to obtain NFS information on the remote host (security risk)
The procinfo command can obtain system information from the/proc directory and display it in a proper format on the standard output. (We can use other methods)
According to RFC 868, rdate can obtain date and time information from other computers in the network. (Security risks)
The rdist Program maintains multiple copies of the same files on multiple hosts. If possible, rdist retains the file's owner, group, mode, and mtime attributes, and it can dynamically update running programs. (Security risks)
Ucd-snmp includes a variety of utilities for UCD-SNMP network management. (Security risks are not necessary)
The screen tool allows you to log on to a terminal multiple times at the same time. Screen is useful for users who use telnet to log on to a remote server or use a dumb terminal. (Not necessary)
Documentation:
Indexhtml includes some HTML files and some images. After you successfully install RedHat Linux, it serves as a welcome page for your browser. (As a server, not necessary)
System Environment/Base:
Chkfontpath is a simple command line program used to add, delete, and list the font paths of X Windows. (Not necessary)
NIS provides network information for all computers on the network, such as Logon Name, password, home directory, and group information. (Security risks)
System Environment/Daemons:
XFree86-xfs is the XFree86 Font Service Program. It can provide fonts for remote X server. (Xfs supports TrueType (tm) fonts) (not required)
Lpr provides basic tools for managing the Print Service. (No, we don't need a printer)
Portmapper is a security tool that prevents others from stealing NIS, NFA, and other sensitive information. Portmapper manages RPC (Remote Call) connections. RPC is required for protocols such as NFS and NIS. (Security risks)
Pidentd contains identd. Identd is used to implement the RFC1413 authentication service. Identd queries TCP/IP connections and returns the user name and other information about the connection process. (It is absolutely unnecessary because almost no one on the network uses identd)
Routed is a route daemon that accepts RIP and broadcasts the route information of the network to maintain the current route table. The route table is very important to computers on the network. With the route table, the computer can know where to send an IP packet. (Security risks)
Rusers allows users to query information of logged-on users on computers connected to the local network. The output format of the rusers command is similar to that of the who command, but it lists the logon user information of a group or all computers on the LAN. (Security risks)
The output format of the rwho command is similar to that of the who command, but it can display the login user information of computers running the rwho daemon. (Security risks)
Tftp provides a TFTP user interface that allows users to upload and download files on remote computers. The TFTP (Trivial File Transfer) protocol is usually used to start a diskless workstation. (Security risks)
Ucd-snmp supports the SNMP protocol. SNMP is a network management protocol. (Security risks)
System Environment/Libraries:
The XFree86-libs contains the shared libraries required for the X program to run, which are placed in a unified software package to reduce disk space. (Per necessity)
Libpng is a function library used to process PNG image files. PNG is a GIF-like bitmap file format. (Not necessary)
User Interface/X:
The XFree86-75dpi-fonts is the 75dpi font for X Windows. Uwr-fonts is a free of 35 Posts highlight (tm) fonts. It is mainly used for ghosts upload. These are unnecessary.
The following describes how to use the RPM command:
1. Install the RPM package
[Root @ deep] # rpm-ivh foo-1.0-2.i386.rpm
2. Uninstall the RPM package
[Root @ deep] # rpm-e foo
3. Upgrade the RPM package
[Root @ deep] # rpm-Uvh foo-1.0-2.i386.rpm
4. query the RPM package
[Root @ deep] # rpm-q foo
5. Display package information
[Root @ deep] # rpm-qi foo
6. Display files in the Software Package
[Root @ deep] # rpm-ql foo
7. Check the software package Signature
[Root @ deep] # rpm -- checksig foo
8. install the software using the RPM package released by the source code.
[Root @ deep] # rpm-ivh -- rebuild foo. src. rpm

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.