Linux FTP Setup

Source: Internet
Author: User


System: Centos6.5

Software: VSFTPD


  1. Installation

    Yum Install vsftpd

    Once installed, the service vsftpd start can be accessed, but does not require user password authentication.


  2. Configure User Password Authentication

    After the installation of the configuration file in:/etc/vsftpd directory, we only need to change the vsftpd.conf;

    Vim/etc/vsftpd/vsftpd.conf

    Anonymous_enable=no #NO表示不允许匿名访问, yes to allow


    Add FTP Authenticated Users:

    Useradd-g ftp-s/sbin/nologin FTP1 #把ftp1加入到ftp组中, and no landing system allowed
    passwd FTP1 #设置ftp1pnd

    Open the browser to enter the user password can log on;


3. Disable FTP users from switching to other directories in the system

Vim/etc/vsftpd/vsftpd.conf

Chroot_list_enable=yes

Chroot_list_file=/etc/vsftpd/chroot_list

Write the user who needs to imprison the home directory to the Chroot_list file, one user per line;

Service vsftpd restart #重启vsftpd services;

Re-login Test ok!!!

This article from the "Shallow faint" blog, please be sure to keep this source http://cuixiang.blog.51cto.com/8204722/1695820

Linux FTP Setup

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.