In order to implement the FTP server configuration in the Linux environment, most of the Linux distribution kits are Washington University FTP (WU-ftpd), which is a performance excellent server software because it has many powerful features and oversized throughput. The FTP server on the Internet has more than 60% of the FTP server.
Installation and Run We take redhat Linux as an example. 1. The FTP service can be divided into two categories according to the different service objects: a class is a system FTP server, which only allows legitimate users on the system; another category is an anonymous FTP server, which allows anyone to log in to FTP Server After connecting to the server, enter anonymous in the login prompt, you can access the server. For these two services, the WU-FTPD RPM package can be installed through the first CD of Redhat, just enter the system as root, you can run the following command: rpm - ivh anonftp -xx-x.i386.rpm rpm - IVH wu-ftpd-xxx-x.i386.rpm where -xx-x and -xxx-x are version numbers. 2, Like Apache, WU-ftpd can also be configured to automatically start: execute the setup program included with Red Hat, select Wu-ftpd in the "System Service" option, and press the [OK] button to determine exit. Automatic start is convenient, however, when we change the Wu-ftpd configuration file, you need to use manual boot: Start: / usr / sbin / ftprestart close: / usr / sbin / ftpshut
FTP Server Configuration To ensure that the FTP server is secure, you must set some important configuration files to better control the user's access. These profiles are: / etc / ftpusers, / etc / ftpConversions, / etc / ftp-groups, / etc / ftpppHosts, / etc / ftpaccess. Using these files, which people can control very accurately, when you can connect the server from what location, and you can check / etc / ftpusers: Users contained in this folder cannot pass FTP Log in to the server, sometimes you need to prohibit the user account to write to file / etc / ftpuser so you can prevent some users from using FTP services. / Etc / ftpconversions: Used to configure compression / decompression programs. / Etc / ftpgroups: Create a user group, and members in this group predefine can access the FTP server. / etc / ftpphosts: Used to access or allow remote hosts to specific accounts, for example: Allow CZC 192.168.0.0.0/24 deny CDD 10.0.0.0/8 indicates that CZC users are allowed to connect from 192.168.0 network segments, Reject CDD from 10. This network segment is connected. / Etc / ftpaccess: is a very important configuration file to control access rights, each row in the file define an attribute and set the value of the attribute.
Here is some of its common configurations to introduce: 1. Define user category format: Class [Class Name] [REAL / GUEST / Anonymous] [IP Address] function: The function of this instruction sets the category of the user on the FTP server. And the client's IP address can be restricted, allowing specific or all IP addresses to access the FTP server. 2, the login retries are entered in the command line: loginfails 10, which indicates that the connection is cut if it is not logged in 10 times. 3, password check format: passwd-check
The above is the key points for FTP server configuration under Linux, I hope to help you.