CentOS 7 Installation Configuration FTP

Source: Internet
Author: User

    • Installing VSFTPD
install -y vsftpd
    • Edit the FTP configuration file
vi /etc/vsftpd/vsftpd.confanonymous_enable=NO#anonymous_enable=YESchroot_local_user=YES#去掉前面的注释#chroot_list_enable=YES#chroot_list_file=/etc/vsftpd/chroot_list#不受限制的用户列表,用不用都OKallow_writeable_chroot=YES#加上这行解决了无法登陆的问题
    • Start/Restart FTP
startservice vsftpd restart
    • Set up boot FTP
on
    • Firewall configuration (iptables)
vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
    • Firewall restart

    • Create an FTP account

-d /path/you/want -s /sbin/nologin ftpadmin
    • Change Password
passwd ftpadmin
    • Set account Permissions
chown -R ftpadmin.ftpadmin /path/you/set

CentOS 7 Installation Configuration FTP

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.