I. Creating data for a virtual User 1. Create a file in any directory Login_user (file name can be taken), this file should be reserved for each user 2 lines, the 1th row is the user name, the 2nd line is the user password Vi/etc/vsftpd/login_user
Cat/etc/vsftpd/login_user
2. Install the DB tool, normally the system is not preinstalled in the system 2.1 download the installation package db-4.6.21.tar.gz and pull to the server
2.2 Installation
Tar zxvf db-4.6.21.tar.gz cd db-4.6.21 Find out if there are db_load this file 3. Using the DB toolcreate data for a virtual userDb_load-t-T hash-f/etc/vsftpd/login_user/etc/vsftpd_login_dbchmod 600/etc/vsftpd
Two. Configure the PAM validation editor/etc/pam.d/vsftpd This file three. Create a local user map edit the/etc/vsftpd/vsftpd.conf file, modify or add the following configuration guest_username=ftpguest_enable= yesguest_username=ftpanonymous_enable=nolocal_enable=yeschroot_local_user=yespam_service_name=/etc/pam.d/ vsftpd# #存放用户配置文件的目录user_config_dir =/etc/vsftpd_user_conf
Iv. setting up user directories and permissions inCreate zw123 text file in/etc/vsftpd_user_conf directory, store zw123 the user's configuration# #打开vsftpd的全局写权限write_enable =yes# #打开文件上载权限anon_upload_enable =yes# #打开建立目录的权限anon_mkdir_write_enable =yes# #打开删除/ Renamed permissions anon_other_write_enable=yes# #zw123这个用户的主目录local_root = Path
V. Restart VSFTPD server/ETC/INIT.D/VSFTPD restart
From for notes (Wiz)
Configuration of the virtual user