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