CentOS Installation VSFTPD

Source: Internet
Author: User

Version: Vsftpd-3.0.2-9.el7.x86_64 (CentOS is 64-bit).

1. Installing VSFTPD

Yum Install vsftpd

2. Configure VSFTPD

Back up the original configuration file before modifying the configuration:

CP /etc/vsftpd/vsftpd.conf  /etc/vsftpd/vsftpd.conf.backup

To modify a configuration file:


Where to modify :

1) Remove the comment at the beginning of the following to restrict all users from switching to a different directory


2) allow the root directory to be writable


There are two modes of working with FTP, one is passive mode and the other is active mode, here we use Active mode:

At the end of the file, add:


If you want to use passive mode, configure the following:

pasv_enable=yespasv_min_port=40000    The upper bounds of the #pasv连接模式时可以使用port range, 0 means any pasv_max_port=40100    # The lower bound of the port range can be used when PASV connection mode.

3. Restart the service

Systemctl Restart VSFTPD

Set up the VSFTPD service after booting from:

Systemctl Enable VSFTPD   

4. Create a user

useradd-d/ftp image-s/sbin/nologin

Where-d specifies the directory when the user logs on,-s specifies the shell to use after the user logs in, and then sets the password


Finally give/FTP authorization:

chmod 755 /FTP

Description: Because the firewall and SELinux were previously closed, no additional setup is required here.

CentOS Installation VSFTPD

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.