VSFTP is an FTP server software released based on GPL on Unix-like systems. Its full name is VerySecureFTP. From this name, it can be seen that the compiler's original intention is code security. Security is the original intention of VSFTP writing. In addition to the inherent security features, high speed and high stability are also two important features of VSFTP. In terms of speed: when data is downloaded in ASCII code mode, the speed of VSFTP is twice that of Wu-FTP. If the Linux host uses the. * kernel
VSFTP is a GPL-based FTP server software released on Unix-like systems. Its full name is Very Secure FTP, which can be seen from this name. The Compiler's original intention is code security. Security is the original intention of VSFTP writing. In addition to the inherent security features, high speed and high stability are also two important features of VSFTP.
In terms of speed: when data is downloaded in ASCII code mode, the speed of VSFTP is twice that of Wu-FTP. If the Linux host uses 2. 4. * The download speed of the kernel on Gigabit Ethernet is up to 86 MB/S.
In terms of stability: VSFTP is even better. VSFTP supports simultaneous connection of more than 4000 concurrent users on a single machine (non-cluster). Based on the data of the RedHat Ftp Server (ftp.redhat.com, VSFTP server supports 15000 concurrent users
This article describes how to configure VSFTP virtual user mode:
Install VSFTP: sudo apt-get install vsftpd
Install the database package: sudo apt-get install DB-util
Configure virtual users (enter/etc/vsftpd)
1. Create a virtual user password Library File
#Vim vusers. list(The first line writes the user name, the second line writes the password, save and quit)
User1
User1pwd
User2
User2pwd
2. Generate the authentication File For vsftpd
#Db_load-T-t hash-f vusers. list/etc/vsftpd/vsftpd_login.db (generate authentication file)
#Chmod 600/etc/vsftpd/vsftpd_login.db (authorization)
3. Create the PAM Configuration File required by the virtual user
#Vim/etc/pam. d/vsftpd(Add the following content and add all other comments .)
Auth required pam_userdb.so db =/etc/vsftpd/vsftpd_login
Account required pam_userdb.so db =/etc/vsftpd/vsftpd_login
4. Create a directory to be accessed by a virtual user and Set permissions
#Useradd-d/home/ftp-s/sbin/nologin virtual
#Chmod 777/home/ftp/
Add the following parameter configuration items in vsftpd. conf:
Guest_enable = YES
Guest_username = virtual
5. set different permissions for different virtual users
#Mkdir/etc/vsftpd/vsftpd_user_conf
#Vim/etc/vsftpd/vsftpd_user_conf/user1(Create a separate configuration file for the user. The file name is the user name)
Local_root =/home/ftp/user1# The virtual user directory can be modified according to the actual situation.
Write_enable = YES
Virtual_use_local_privs = YES# Virtual users have write permissions (upload, download, delete, and rename)
Add the following parameter configuration items in vsftpd. conf:
User_config_dir =/etc/vsftpd/vsftpd_user_conf
6. Banned FTP users in the Home Directory
Write the user name to be banned to the "vsftpd. chroot_list" file.
#Vim/etc/vsftpd. chroot_list
User1
User2
Add the following parameter configuration items in vsftpd. conf:
Chroot_list_enable = YES
Chroot_list_file =/etc/vsftpd. chroot_list