Configuration of FTP service in Ubuntu

Source: Internet
Author: User
Tags ftp access
To upload and download files through FTP between WINDOWS 7 and UBUNTU on a virtual machine, the CUTEFTP tool is used in WINDOWS. this tool must support FTP services, so we made the following configuration to achieve file sharing. In fact, we can also set an account ,... to upload and download files through FTP between WINDOWS 7 and UBUNTU on a virtual machine, the CUTEFTP tool is used in WINDOWS. this tool must support FTP services, 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 vsftpdsudo apt-get install vsftpd. at this time, the system will automatically create ftp users and ftp groups, and create the/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 to open the/etc/vsftpd. conf file, change anonymous_enable = NO to anonymous_enable = YES, and allow anonymous access.
3. now you can access FTP. First Test: 1) create a new file a.txt under the/srv/ftpdirectory, and then sudo chown root: ftp a.txt 2) ftp localhost finds logon failure. (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/etc/vsftpd. conf file: write_enable = YES # Allow the upload of anon_upload_enable = YES # Allow anonymous upload of anon_mkdir_write_enable = YES # allow anonymous users to create folders (sudo/etc/init. d/vsftpd restart) by js_gary
Related Article

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.