CentOS 7 Installation and configuration vsftpd

Source: Internet
Author: User

First, firewall open 21 port

Second, the creation of the FTP user, after creating the user in the/etc/passwd is presented in this way: Ftpuser:x:1008:1008::/var/www/html:/sbin/nologin

Third, yum list |grep vsftpd find the package name and install it using Yum

Iv. Edit the configuration file/etc/vsftpd/vsftpd.conf, write the following:

# 1. Anonymous Logon is not allowed
Anonymous_enable=no

# 2. Entity User Configuration, writable and Umask to 002
Local_enable=yes
Write_enable=yes
local_umask=002
Userlist_enable=yes
Userlist_deny=yes
Userlist_file=/etc/vsftpd/user_list here is not allowed to login FTP user, this file must exist

# 3. Service-related configuration
Use_localtime=yes
Dirmessage_enable=yes
Xferlog_enable=yes
Connect_from_port_20=yes
Xferlog_std_format=yes
Listen=yes
Pam_service_name=vsftpd
Tcp_wrappers=yes
Banner_file=/etc/vsftpd/welcome.txt Welcome Word, this file must exist

V. Start the service, client test can log in

Systemctl Enable VSFTPD service boot from

Systemctl Start vsftpd Startup service

To test for access on a Windows computer, double-click the computer to enter the IP address of Ftp://FTP/

CentOS 7 Installation and configuration vsftpd

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.