One, download version: vsftpd-2.0.5-16.el5_4.1.i386.rpm
Second, installation: Rpm-ivh vsftpd-2.0.5-16.el5_4.1.i386.rpm
Three, configuration:
Vsftpd.ftpusers and Vsftpd.user_list
There are three configuration files for the VSFTPD, namely
/etc/vsftpd/vsftpd.conf
/etc/vsftpd.ftpusers
/etc/vsftpd.user_list
which
/etc/vsftpd/vsftpd.conf is the master configuration file.
/ETC/VSFTPD.FTPUSERS Specifies which users cannot access the FTP server.
The FTP server is not accessible by default for the user specified in/etc/vsftpd.user_list (that is, Userlist_deny=yes is set in/etc/vsftpd/vsftpd.conf).
When Userlist_deny=no is set in/etc/vsftpd/vsftpd.conf, only the user specified in the/etc/vsftpd.user_list is allowed access to the FTP server.
Note: Adding users to the profile also requires adding users at the OS level:
Build Users:
AddUser PHPQ//New PHPQ User
passwd PHPQ//Set password for PHPQ user
Iv. restricting the user's ability to prevent the directory from being questioned
The scheme is as follows:
Modify the/etc/vsftpd/vsftpd.conf file
Found it
#chroot_list_enable =yes
# (default follows)
#chroot_list_file =/etc/vsftpd.chroot_list
Switch
Chroot_list_enable=yes
# (default follows)
Chroot_list_file=/etc/vsftpd/joyous_chroot_list
Then create a file Joyous_chroot_list file under/etc/vsftpd/, in fact this file is restricted to that user can not access the directory. Write the user name that you want to restrict in this file, for example: joyous if you need more than one user, one line at a
Then restart VSFTPD
Service VSFTPD Restart
This connects the server with FTP joyous the user cannot access the other directories up.
VSFTPD service installation, configuration, restricted directory