1, Vsftpd Brief
What kind of FTP server is the safest? Then in Unix and Linux, the most important thing is vsftp (Very secure FTP Daemon, very secure FTP server). As the name suggests, the starting point of VSFTPD design is security. At the same time, with the continuous upgrade of the version, VSFTPD has made great progress in performance and stability. Like Redhat, SUSE, http://www.aliyun.com/zixun/aggregation/33836.html ">debian, GNU, GNOME, Some large sites, such as KDE, use VSFTPD as their FTP servers. You can go to http://vsftpd.beasts.org/to get an update on it.
2, VSFTPD installation
2.1, RHL9+VSFTPD-.1.1.3-8.I386.RPM Package installation
The installation of VSFTPD is simple. In RHL9, you can complete the installation by executing "Main menu"-"System Settings"-"Add/remove Applications"-Select FTP Server-"Update" in the graphical interface, or execute the following commands in the character interface.
RPM-IVH vsftpd-1.1.3-8.i386.rpm
2.2, vsftpd-1.2.0.tar.gz Installation
⑴ Preparation Conditions
The "Nobody" user is required in the VSFTPD default configuration. Add this user to the system, Useradd command prompts if the user already exists.
[Root@hpe45 root]# Useradd Nobody
Useradd:user Nobody exists
The "/usr/share/empty" directory is required in the VSFTPD default configuration. In the system this directory, if the directory already exists, the mkdir command has the appropriate prompt.
[Root@hpe45 root]# mkdir/usr/share/empty/
Mkdir:cannot Create directory '/usr/share/empty ': File exists
When VSFTPD provides anonymous FTP services, it requires an "ftp" user and a valid anonymous directory.
[Root@hpe45 root]# mkdir/var/ftp/
[Root@hpe45 root]# useradd-d/var/ftp FTP
The next action is useful for whether the FTP user already exists.
[Root@hpe45 root]# chown root.root/var/ftp
[Root@hpe45 root]# chmod og-w/var/ftp
⑵ compilation VSFTPD
Download from the official site to the/root directory and execute the following command:
[Root@hpe45 root]# tar zxvf vsftpd-1.2.0.tar.gz
[Root@hpe45 root]# CD vsftpd-1.2.0
[Root@hpe45 vsftpd-1.2.0]# make
⑶ installation compiled well VSFTPD
Perform "Make install" to copy the compiled binaries, manuals, and so on to the appropriate directory. On RHL9, you may need to manually perform the following replication:
[Root@hpe45 vsftpd-1.2.0]# CP vsftpd/usr/local/sbin/vsftpd
[Root@hpe45 vsftpd-1.2.0]# CP Vsftpd.conf.5/usr/local/share/man/man5
[Root@hpe45 vsftpd-1.2.0]# CP VSFTPD.8/USR/LOCAL/SHARE/MAN/MAN8
In addition, "make install" does not replicate a simple configuration file, we recommend that you execute the following command:
[Root@hpe45 vsftpd-1.2.0]# CP vsftpd.conf/etc
⑷ set Pam for Local Users
If you allow local users to log on to VSFTPD, do the following:
[Root@hpe45 vsftpd-1.2.0]# CP redhat/vsftpd.pam/etc/pam.d/ftp