Change the configuration file below
[Email protected] ~]# vim/etc/pure-ftpd/pure-ftpd.conf
Before the # is removed and then started PURE-FTPD, you need to close vsftpd before booting because there is a port conflict.
The following creates the test directory, which is used by a pure-ftp user
where the-U option associates the virtual user Ftp_usera with the system user pure-ftp, that is, after logging in to FTP using the Ftp_usera account, the file is read and downloaded as pure-ftp, and the directory after the-D option is FTP_ UserA the home directory of your account so that Ftp_usera can only access its home directory/data/ftp/. Then create a user information database file, which is the most critical step. Command: PURE-PW mkdb. PURE-PW can also list the current FTP account and delete an account. For example, create an account again
PURE-PW useradd ftp_user2-u pure-ftp-d/tmp
PURE-PW MKDB
List current account, command: PURE-PW list
If you want to delete an account, command: PURE-PW userdel ftp-user2
Test pure-ftp
15.4 Xshell using XFTP to transfer files 15.5 using PURE-FTPD to build FTP service