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