Ubuntu 16.04 Install VSFTPD and turn on FTP service

Source: Internet
Author: User

sudo apt-get install vsftpd

The FTP configuration file is

/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/groupcat /etc/passwd

The directory location of the FTP server is in/srv/ftp, which is also the root directory when anonymous users visit.


This indicates that the FTP service is turned on, but Anonymous logon is not turned on.

Configure vsftpd.conf

Edit/etc/vsftpd.conf File:

// 允许匿名用户登录anonymous_enable=YES// 允许本地用户登录local_enable=YES// 开启全局上传write_enable=YES// 允许匿名用户上传文件anon_upload_enable=YES  // 充许匿名用户新建文件夹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

Ubuntu 16.04 Install VSFTPD and turn on FTP service

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.