1.sudo apt-get Update
2.sudo apt-get install VSFTPD, after performing this step, the VSFTPD service has been installed
3. Create an FTP user
A, create a user directory sudo mkdir/home/uftp
b, create user sudo useradd-d/home/uftp-s/bin/bash uftp
c, change password sudo passwd uftp
4. Modify the FTP configuration file /etc/vsftpd.conf
A, adding to the file
Userlist_deny=no
Userlist_enable=yes
Userlist_file=/etc/allowed_users
Seccomp_sandbox=no
Make "Local_enable=yes" in the file-save.
B, create a new/etc/allowed_users file
Input "sudo gedit/etc/allowed_users"--Enter uftp--> save
C, use Gedit to view the contents of the/etc/ftpusers file
Open "Terminal Window", enter "sudo gedit/etc/ftpusers"--Return to open this file, see if there is no uftp this username, if not, just exit. If any, delete uftp, because this file is logged in the user list that cannot access the FTP server.
D, if you want to change the default download directory, modify/etc/vsftpd/vsftpd.conf, add the following three lines:
local_root=/
Local_root represents the default directory when you log on to FTP with a local user
----------------------------------------------
5. Note the relevant directory permissions
Error: 550 Permission denied
Cause: Vsftp default configuration does not allow uploading of files.
FIX: Modify/etc/vsftpd.conf
Cancel the # in front of "Write_enable=yes".
Restart the VSFTP server.
6. Modify permissions to upload files
The default is-RW---------
After setting the following:
local_umask=022
Change to:-rw-r--r--
7. Modify the FTP encoding
Using UTF8
Utf8_filesystem=yes
Ubuntu 16.04 Installing an FTP server