1. Create the logins.txt/etc/vsftpd/login.txt file of the virtual user database as follows, even line set password 2, generate vsftpd authentication file # db_load-T-thash-f/etc/vsftpd/logins.txt/etc/vsftpd/login. db # generate the Authentication database file login. db
1. Create the logins.txt file of the virtual user logging database.
The/etc/vsftpd/login.txt file contains the following content:
Set the username for odd lines in the password library file, and set the password for even lines
2. Generate the authentication File For vsftpd
# Db_load-T-t hash-f/etc/vsftpd/logins.txt/etc/vsftpd/login. db # generate the Authentication database file login. db
Note: If the db_load command is not available, install the following RPM package.
3. Set the authentication file to be readable and writable only to the root user.
# Chmod 600/etc/vsftpd/login. db
4. Create the PAM Configuration File required by the virtual user and manually create the vsftpd. vu file.
# Vim/etc/pam. d/vsftpd. vu:
5. Create a system user account used by all FTP virtual user accounts, and set permissions for the home directory of the account.
# Useradd-s/sbin/nologin-d/home/vftp