LINUX study notes - FTP server settings (1)

  

Foreword:

Half a month ago began to learn REDHAT LINUX7.0. As a newcomer to Linux, it is inevitable that I have encountered some problems. By reading the books and materials, checking the BBS, my own practice and solving some problems. Think of your own lessons for others to learn from, so boldly write it out, you can save as a study note, and second, I hope to help friends who are new to Linux. Due to my limited ability, it is inevitable that there are some omissions in the notes. Please also ask the master.

I. Introduction to FTP

In network applications, the most widely used are WWW and FTP. FTP is the abbreviation of File Transport Protocol file transfer protocol. FTP server can provide file transfer service on the network. The FTP server can be divided into an anonymous server (Anonymous Ftp Server) and a system FTP server according to different service objects. The former can be used by anyone, and the latter can only be used by people who have a legitimate account on the FTP server.

II. Introduction to ProFTPD

Currently, the free FTP server software commonly used in UNIX and LINUX is mainly Wu-FTP and ProFTP. Wu-FTP is widely used in many Unix and Linux systems. It is the default FTP server software for RedHat Linux, but it has been found to have a lot of security vulnerabilities. ProFTP was developed for the weakness of Wu-FTP. In addition to improved security, it also has many features that Wu-FTP does not have, such as simple setup, running in Stand-alone mode, and so on. ProFTP has become the most popular FTP server software after Wu-FTP. More and more sites use it to build a secure and efficient FTP site. TurboLinux is an example.

Third, ProFTP settings

Set the target: Configure RedHat Linux with IP 10.0.8.39 as an FTP server, and allow anonymous access to the FTP server with anonymous, and only allow the same network segment ( The 10.0.8.*) computer has "Write" permission on the "incoming" directory of FTP.

The latest version of ProFTP can be downloaded from www.proftpd.org. Here we use the stable 1.2.1 version of the rpm installation package as an example (source code compilation is also very simple) to explain.

Step 1: Configure the basic anonymous server

After downloading the 1.2.1 rpm, right click on the file in the Gnome window and click on “Show info” to view some of the rpm packages. Information, here we should pay attention to the default installation path of some files, such as /usr/local/etc/proftpd.conf (ProFTPD configuration file), /usr/sbin/proftpd (Run Proftpd command in stand-alone mode) , /usr/doc/proftpd-1.2.1 (Proftpd's documentation and the directory where the configuration files are located), then double-click the rpm package to install the software.

If you choose the FTP service when installing RedHat Linux 7.0 like me, you must first remove the installed Wu-FTP software. Enter "rpm -e anonftp" and "rpm -e wu-ftpd" to delete the existing FTP service.

After ProFTP installation, edit /usr/local/etc/proftpd.conf and find "Group nobody" and change to "Group nobody" because there is no "nobody" group in RedHat Linux7.0. At this point, an FTP server that provides anonymous services is ready to run. Enter "proftpd" to run the FTP service, then "ftp 10.0.8.39" to log in as "anonymous" to see if you can log in normally. In general, you can log in.

Note: Running "Proftpd" directly will enable the FTP service to start in stand-alone mode. This mode is more secure than the dameon process mode. It is recommended. However, you can add "Proftpd" to /etc/rc.d/rc.local so that when the computer is booted, Proftpd will start.

Copyright © Windows knowledge All Rights Reserved