CentOS Quick Build FTP (beginner-Four steps)

Source: Internet
Author: User

Deployment of FTP, if not previously set up, just start looking for information on the Internet when a variety of complex parameter configuration, look at the dizziness, here the most important part of the show out.

1. Installing VSFTPD
Yum Install-y vsftpd

2. If this is the default configuration, verify that the following four parameters are correct. The red ones are very important.

Vi/etc/vsftpd/vsftpd.conf

Anonymous_enable=no
Local_enable=yes
Write_enable=yes
Chroot_local_user=yes

3. Add user and Set password
adduser-d/web/data/www-g ftp-s/sbin/nologin yfftp
passwd yfftp

4. Turn on FTP
Service VSFTPD Start

According to the above method should be able to access the FTP normal, if still cannot access please check if your firewall is on, you can release Port 21st.

Extended Reading

vsftpd.conf Configuration Instructions

Anonymous_enable=yes/no (YES)
Controls whether anonymous users are allowed to log in, YES to allow anonymous login, no is not allowed. The default value is yes.

Local_enable=yes/no (YES)
Controls whether local users are allowed to log in, YES to allow local users to log in, no is not allowed. The default value is yes.

Write_enable=yes/no (YES)
Whether to allow login users to have write permission. is the global setting and the default value is yes.

Chroot_local_user=yes/no (NO)
Lets you specify whether users in the user list file are allowed to switch to the parent directory. The default value is No.
The following effects can be achieved by pairing:
A. When Chroot_list_enable=yes,chroot_local_user=yes, the user listed in the/etc/vsftpd.chroot_list file can switch to a different directory, a user who is not listed in the file, You cannot switch to a different directory.
B. When chroot_list_enable=yes,chroot_local_user=no, users listed in the/etc/vsftpd.chroot_list file cannot switch to a different directory, and users who are not listed in the file You can switch to a different directory.
C. When Chroot_list_enable=no,chroot_local_user=yes, all users cannot switch to a different directory.
D. When Chroot_list_enable=no,chroot_local_user=no, all users can switch to a different directory.

References
[1] CENTOS–FTP Installation and Configuration
http://shuany.iteye.com/blog/850568
[2]VSFTPD configuration file detailed
http://yuanbin.blog.51cto.com/363003/108262/

CentOS Quick Build FTP (beginner-Four steps)

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.