Wu-ftpd is the most popular FTP daemon on the Internet. Wu-ftpd is very powerful and can be used to build multiple types of FTP servers. The Wu-ftpd menu helps you easily configure the FTP server: supports the construction of secure anonymous FTP access and controls the number of users simultaneously, restrict ip cidr blocks that can be accessed, and set multiple virtual directories on one host. Wu-ftpd has three registration methods: anonymous FTP, actual user FTP, and guestFTP. Anonymous FTP is registered with the username "anonymous" and an email password.
Wu-ftpd was released earlier. In the latest version 2.6.2), it has improved the most worrying system security issues, so it is still the mainstream Ftp Server. Some functions of Wu-ftpd are as follows:
1. Install the Wu-ftpd Server
There are two ways to install Wu-ftpd: one is to install the release package in the RPM form, and the other is to compile and generate the package by yourself. The steps for installing these two methods are described below.
1. RPM package installation method
The installation package can be downloaded from RPMfind. Installing an RPM package is simple. You only need to perform the following steps:
// Store the downloaded rpm package under the/tmp directory # cp wu-ftpd-2.6.2-8.i386.rpm/tmp // switch directory # cd/tmp // install # rpm-ivh wu-ftpd-2.6.2-8.i386.rpm
2. Source Code Installation Method
The compressed source code can be obtained on the official website of Wu-ftpd. The latest online version is: wu-ftpd-2.6.2.tar, the following is the installation steps:
// Copy the compressed source code to the/usr/src directory # cp wu-ftpd.2.6.2.tar.gz/usr/src // extract the compressed Document # tar xvfz wu-ftpd.2.6.2.tar.gz // switch the directory # cd wu-ftpd-2.6.2/ /configuration #. /configure // compile # make install
2. Start the Wu-ftpd Server
After the Wu-ftpd server is installed, you can use the default configuration to start using the server. Generally, there are two ways to start the server: xinetd and command line. The following describes the two startup methods respectively, and then describes the process of using the server through examples.
1. xinetd Startup Mode
To use this startup method, you only need to configure the wu-ftpd file in the/etc/xinetd. d directory, as shown in the following steps:
# Vi wu-ftpd // use vi to edit the wu-ftpd file // edit the content as follows # default: on/default/start the server at the same time # description: the wu-ftpd FTP server serves FTP connections. it uses \ # normal, unencrypted usernames and passwords for authentication. service ftp {disable = nosocket_type = streamwait = nouser = rootserver =/usr/sbin/in. ftpdserver_args =-l-alog_on_success + = DURATION USERIDlog_on_failure + = USERIDnice = 10} # service xinetd restart // restart the xientd service for the change to take effect
2. Start in Command Line Mode
It is very easy to start the server by using the command line, as shown in the following command:
#/Usr/sbin/ftpshut // first shut down the service #/usr/sbin/ftprestart // then restart
Next, we will illustrate how to use the Wu-ftpd server through specific examples.