CentOS Build FTP Server

Source: Internet
Author: User

1. Installing VSFTPD

sudo Yum Install vsftpd

2. Configure vsftpd.conf

if You comment the). anonymous_enable=forbool  Ftp_home_dirlocal_ Enable=yeswrite_enable=yes# Local FTP directory address local_root=/var/ftp

3. Add an FTP user

-d/var/FTPftp -s/sbin/nologin *_ftp# Change Password passwd *_ftp

4. Upload Permissions

# Modify Upload Path permissions777more personal preference set permissions sudo chmod-R777/var/ftp# Viewing the FTP settings Getsebool-a|grep ftpftp_home_dir-Onftpd_anon_write-offftpd_connect_all_unreserved-offftpd_connect_db-offftpd_full_access-onftpd_use_cifs-Offftpd_use_fusefs-Offftpd_use_nfs-Offftpd_use_passive_mode-offhttpd_can_connect_ftp-Offhttpd_enable_ftp_server-Offsftpd_anon_write-Offsftpd_enable_homedirs-offsftpd_full_access-Offsftpd_write_ssh_home-Offtftp_anon_write-Offtftp_home_dir-off# Modify Ftp_home_dir, ftpd_full_access to Onsetsebool-P Ftp_home_dir=on Ftpd_full_access=on

5. Set VSFTP boot

Chkconfig vsftpd on

6. Add a Firewall

Firewall-cmd--permanent--add-service=ftpfirewall-cmd--reload

CentOS Build FTP Server

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.