4. Use Ubuntu server to set up a standalone hard disk based Windows file sharing and FTP server (FTP Setup)

Source: Internet
Author: User

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)

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.