Yum Install vsftpd Db4-utils
Because you want to log on using a virtual user.
Modify the following file a:/etc/pam.d/vsftpd; add two lines
Auth required/lib64/security/pam_userdb.so Db=/etc/vsftpd/vftpuser
Account Required/lib64/security/pam_userdb.so Db=/etc/vsftpd/vftpuser
System 64 bit a lot of information on the Internet is/lib/security/pam_userdb.so here to change.
3. configuration file vsftpd.conf
Listen=yes
Local_enable=yes
Write_enable=yes
local_umask=022
Dirmessage_enable=yes
Xferlog_enable=yes
Connect_from_port_20=yes
Xferlog_std_format=yes
Userlist_enable=yes
Tcp_wrappers=yes
Anonymous_enable=no
Guest_enable=yes
Guest_username=ftpadmin #虚拟目录对应的账号
Pam_service_name=vsftpd
Anon_world_readable_only=no
Anon_upload_enable=yes
Anon_mkdir_write_enable=yes
Anon_other_write_enable=yes
User_config_dir=/etc/vsftpd/vsftpd_user_conf #配置虚拟用户的单独配置路径, such as home directory
anon_umask=022
4. Add User Ftpadmin
5. Add user name password to file Vftpuser.txt
Format is user name
Password
6. Db_load-t-T hash-f/etc/vsftpd/vftpuser.txt/etc/vsftpd/vftpuser.db password generation to data file
7./ETC/RC.D/INIT.D/VSFTPD Restart restart can be
You cannot have a space after the configuration file or you will get an error, such as where you added the comment above.
To allow Local_enable=yes otherwise 530 login error and timeout errors is unclear why
This article from "Good memory than bad writing" blog, please be sure to keep this source http://cobweb.blog.51cto.com/390607/1585396
CentOS 6.4 Installation Configuration Vsftp