Configuration of FTP service in Ubuntu

Source: Internet
Author: User
To upload and download files through FTP between Windows 7 and Ubuntu on the virtual machine, the CUTEFTP tool is used in Windows. This tool must be available only after FTP is supported, as a result, we made the following configuration to achieve file sharing. In fact, we can also set accounts, permissions, and security, which are estimated to be used on network servers, I want to learn about embedded development and use it to implement basic functions. 1. Install vsftpdsudoapt-getinstall

To upload and download files through FTP between Windows 7 and Ubuntu on a virtual machine, the CUTEFTP tool is equivalent to the one used in Windows. This tool must be available only after FTP is supported, as a result, we made the following configuration to achieve file sharing. In fact, we can also set accounts, permissions, and security, which are estimated to be used on network servers, I want to learn about embedded development and use it to implement basic functions.

1. Install vsftpd

Sudo apt-get install vsftpd

In this case, the system automatically creates an ftp user and an ftp group, and creates a/srv/ftp folder as the HOME Directory of the ftp user. (If you want to put the FTP directory in/home/ftp, you can modify the ftp user's HOME directory location in the/etc/passwd file .)

2. Configure vsftpd

Open the/etc/vsftpd. conf file, change anonymous_enable = NO to anonymous_enable = YES, and allow anonymous access.

3. Now you can access FTP. Test it first:

1) create a new file a.txt under the/srv/ftpdirectory, and then sudo chown root: ftp a.txt

2) ftp localhost

Failed to log on. (solution: Add the following sentence to/etc/shells:/bin/false. Now you can log on normally.

4. If you need to set the FTP access permission, you can modify the/etc/vsftpd. conf file. The following statements are commonly used:

Write_enable = YES # Allow upload

Anon_upload_enable = YES # Allow Anonymous uploads

Anon_mkdir_write_enable = YES # Allow anonymous users to create folders

(Sudo/etc/init. d/vsftpd restart)

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.