Previously, the storage folder (the entire new hard disk that was mounted behind) was shared with Windows through the Samba service. The reason for sharing is to facilitate file management after FTP is completed.
Software: VSFTPD
Goal: To allow users to log in to FTP can upload files (mainly for iphone photo backup), different users back up in their own folders. You can see these backups by opening the shared storage folder under Windows. At a high level, users set permissions between them and cannot read and write to each other (I personally do not need this setting).
First step, install VSFTPD
sudo apt-get install vsftpd
Step two, create a folder for Xin and gong two users under storage
sudo mkdir/storage/xinsudo mkdir/storage/gong
Then modify the user default folder path
sudo usermod-d/storage/xin xin sudo usermod-d/storage/gong gong
Step three, edit the/etc/vsftpd.conf configuration file
sudo cp/etc/vsftpd.conf/etc/vsftpd.conf.bak (back up before editing) sudo nano/etc/vsftpd.conf find the following lines of code to remove the previous # write_enable= Yeschroot_local_user=yes Chroot_list_enable=yeschroot_list_file=/etc/vsftpd.chroot_list Save exit
Fourth step, edit the/etc/vsftpd.chroot_list file (which is the user profile defined in the previous step)
sudo nano/etc/vsftpd.chroot_list under normal circumstances, there is no content in this file, it is a new file. Write the names of all the FTP users in the file, one name at a time. Finally save the exit.
Fifth step, restart the service
sudo service vsftpd restart
This article is from the "www.DIYPCs.com" blog, make sure to keep this source http://cnbeta.blog.51cto.com/1234897/1548980
4. Use Ubuntu server to set up a standalone hard disk based Windows file sharing and FTP server (FTP Setup)