Ubuntu16.04 Samba Service Configuration

Source: Internet
Author: User

1.sudo apt-get Update


2.sudo apt-get Install Samba Samba-common

Installing Samba Services Software


3.smbpasswd-a Tfjay

Add a Tfjay user to a Samba user


4.vi/etc/samba/smb.conf

[MyShare] #共享目录名

Comment = My root share directory #描述

Path =/home/tfjay #Linux的映射目录

browseable = yes #Linux映射目录的浏览权限.

writable = yes #Linux映射目录的写权限.

Valid users = Tfjay #设置用户

Note the first two spaces for each item here.


5.sudo Service SMBD Restart

Restart Samba Services


6.windows under "Run" Enter the IP address of your samba service.

\\192.168.1.158 If you can get in, it means Samba is a success.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8E/B5/wKioL1jJ-_ejQSMqAACsiyeAJck417.png-wh_500x0-wm_ 3-wmp_4-s_1181230755.png "title=" qq picture 20170316104103.png "alt=" Wkiol1jj-_ejqsmqaacsiyeajck417.png-wh_50 "/>


7. Each time you close the shared window, you will have to re-enter the samba IP in the runtime. This maps a network driver.


A. Click on "Map Network Drive"

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8E/B6/wKioL1jKAdyQfimmAABrO8-bCoQ797.png-wh_500x0-wm_ 3-wmp_4-s_4243872912.png "title=" qq picture 20170316105857.png "alt=" Wkiol1jkadyqfimmaabro8-bcoq797.png-wh_50 "/>


B. Set the shared directory you want to map

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/8E/B6/wKioL1jKAhCSIl34AADIRue7N90705.png-wh_500x0-wm_ 3-wmp_4-s_3482494768.png "title=" qq picture 20170316110112.png "alt=" Wkiol1jkahcsil34aadirue7n90705.png-wh_50 "/>


C. If you see the following network disk is marked successful, each time you enter my computer can be used.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8E/B6/wKioL1jKAnzRQz3gAABog2nuE4w353.png-wh_500x0-wm_ 3-wmp_4-s_2829747613.png "title=" qq picture 20170316110855.png "alt=" Wkiol1jkanzrqz3gaabog2nue4w353.png-wh_50 "/>

This article is from the "Ubuntu1604 Install Golang" blog, so be sure to keep this source http://terrytong914.blog.51cto.com/2081604/1907132

Ubuntu16.04 Samba Service Configuration

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.