Ubuntu
16.04 Installing VSFTPD
Use the following command to install
sudo apt-get install vsftpd
when the installation is complete,the FTP configuration file
/etc/vsftpd.conf
You can use the following command to open, close, and restart the FTP service
SUDO/ETC/INIT.D/VSFTPD startsudo/etc/init.d/vsftpd stopsudo/etc/init.d/vsftpd Restart
you can see that there are more FTP user groups and FTP users in the system using the following commands
Cat/etc/group
cat/etc/passwd
The directory location of the FTP server is in/srv/ftp, which is also the root directory when anonymous users visit.
You can use the following command to indirectly change the directory
Cd/srvsudo rm-d FTPCD ~/
mkdir Ftpsudo ln-s ftp/srv/ftp
Configure vsftpd.conf
Edit /etc/vsftpd.conf file:
Allow anonymous users to log on
Anonymous_enable=yes
Allow local users to log on
Local_enable=yes
Turn on global uploads
Write_enable=yes
Allow anonymous users to upload files
Anon_upload_enable=yes
Allow anonymous users to create new folders
Anon_mkdir_write_enable=yes
Anonymous User Login
Create a pub for anonymous users to upload files under/srv/ftp and change their permissions
Cd/srv/ftpsudo mkdir Pubsudo chown ftp:ftp Pub
then use the phone or computer to log on to the FTP server anonymous users, in the browser or in the file browser "connection server" to enter the following address, you can see the directory of the FTP server (if you just want to see, you may first use anonymous user logon test)
Ftp://localhost
Or
ftp://127.0.0.1
Ubuntu 16.04 Build FTP server