CentOS 6.4 Installation Configuration Vsftp

Source: Internet
Author: User

    1. Yum Install vsftpd Db4-utils

    2. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.