Ubuntu Build FTP Server

Source: Internet
Author: User
Tags filezilla

这一期我们将在Ubuntu上搭建一个ftp服务器。这样我们就可以随时在ftp服务器上下载或上传文件了。先打开我们的Ubuntu并打开终端-


Installing Vsftpd:sudo apt-get Install VSFTPD

Then we use: Cat/etc/group View user group information can see more FTP user groups-


CD/ETC to/etc directory Cat passwd View user information, you can see more FTP users-



VSFTPD after installation, we can find the FTP configuration file in the/etc directory vsftpd.conf

Configure vsftpd.conf
vim/etc/vsftpd.conf Edit vsftpd.conf File:
If you have: Sudo:vim: Command not found try sudo apt-get install vim installation vim


Note: You can find the appropriate options to modify or add them directly later. "#" is the line comment for the configuration file.
Allow anonymous users to log on:
Anonymous_enable=yes
Allow local users to log on:
Local_enable=yes
To turn on global uploads:
Write_enable=yes
Allow anonymous users to upload files:
Anon_upload_enable=yes
Allow anonymous users to create a new folder:
Anon_mkdir_write_enable=yes
Wait a minute

Note: The directory location of the FTP server is in/srv/ftp, which is also the root directory when anonymous users visit.
The sudo above appears to give Superuser privileges. Here the FTP server is set up, let's try the effect. Input directive: Ifconfig View Network Information-

You can see the IP address of this machine after the "inet address":. *.*** Note: The next test is based on the IP that is displayed on your own computer. Then open the FTP software on the computer, enter the host-your IP, user name-ubuntu login username, password-ubuntu login password, port does not fill or fill 21. Connection


You can see that we have successfully connected to the newly built FTP server.

Note: The above mentioned VIM we will introduce its usage in the next issue.
Follow public number Abytec, reply "FileZilla" Get FileZilla Share Link

--作者水平有限,如有错误敬请指出,感激不尽

Ubuntu 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.