Ubuntu 16.04 Installing an FTP server

Source: Internet
Author: User

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

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.