Install vsftpd on CentOS

Source: Internet
Author: User

  1. Install the VSFTPD program.
    sudo Yum Install vsftpd
  2. Start the FTP service.
    sudo service vsftp start
  3. Add the FTP user and set the password.
    sudo FTP FTP-www
    sudo passwd FTP-www
  4. Establish Ftp-www as the FTP root directory, while creating subdirectories incoming as the upload directory. Note that the new version of VSFTPD requires that the root directory cannot be writable.

     sudo  mkdir /var/ftp -www  sudo  mkdir /var/ftp -www/incoming  Span style= "color: #0000ff;" >sudo  chown -R ftp -www/var/ftp -www  sudo  chmod -R a-w /var/ftp -www  sudo  chmod -R 777 /var/ftp -www/incoming 
  5. The
  6. modifies the vsftpd.conf file.
     sudo  vim/etc/vsftpd/vsftpd.conf 

    Modify the following:

     Anonymous_enable=noidle_session_timeout  =600  ascii_upload_enable  =yesascii_ download_enable  =yeschroot_local_user  = yesls_recurse_enable  =yes 

    and adds the following at the end:

     Userlist_deny=nolocal_root  =/var/ftp -wwwpasv_ Enable  =yes 
    pasv_min_port=40001
    pasv_max_port=40008
    Use_localtime=yes

    # Note: For AWS Users, You need to open the port range set above in AWS security settings.

  7. Open the User_list file and add the Ftp-www user name at the end. This allows the ftp-www to log in via the FTP tool.
    sudo vim/etc/vsftpd/user_list

    and add a line at the end:

    FTP-www
  8. Restart the VSFTPD service.
    sudo service vsftpd restart
  9. Turn off SELinux (the firewall blocks FTP data transfer).
    sudo 0

Install vsftpd on CentOS

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.