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