Ubuntu 16.04 Build FTP server

Source: Internet
Author: User

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

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.