Linux uses VSFTP to build FTP server

Source: Internet
Author: User

Generally in a variety of Linux distributions, the default with the FTP software is vsftp, from the various Linux distributions to vsftp recognition can be seen, vsftp should be a good FTP software.

sudo apt-get install vsftpd

Vsftp's master profile is/etc/vsftpd.conf

An account "FTP" may be generated automatically after installation, and a folder will be added under/home.
If this user is not generated, it can be manually generated, it is not necessary:
Code:
sudo useradd-m FTP
sudo passwd ftp

Change permissions after you have an "FTP" account
Code:
sudo chmod 777/home/ftp

In this directory I create a folder to save content that needs to be shared

2. Configuration files
Modified via sudo gedit/etc/vsftpd.conf.
The configuration file is relatively simple, as follows
Code:
#独立模式启动
Listen=yes

#同时允许4客户端连入, up to 5 processes per IP
max_clients=200
Max_per_ip=4

#不允许匿名用户访问, allow local (System) users to log on
Anonymous_enable=no
Local_enable=yes
Write_enable=no

#是否采用端口20进行数据传输
Connect_from_port_20=yes

#生成日志
Xferlog_enable=yes

#指定登录转向目录
Local_root=/home/ftp/ftp

In this way, on the same LAN computer, with my IP address, with the account "FTP" and corresponding password can be logged in, the password is the first step inside passwd that sentence specified.

Yes, don't forget to restart the FTP service after you change the configuration
Code:
SUDO/ETC/INIT.D/VSFTPD restart

There are also commands to turn off the service
Code:
SUDO/ETC/INIT.D/VSFTPD start
SUDO/ETC/INIT.D/VSFTPD stop

Ubuntu installed after the INIT.D there is no such vstfpd file AH.

Linux uses VSFTP to build FTP server

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.