Linux Notes 3-7 Samba

Source: Internet
Author: User

7.samba*************

Goal

SMB File Share

SMB Multi-user mounts

The Universal Internet File System (CIFS), also known as Server Information block (SMB), is suitable for Microsoft
standard file and Printer Sharing system for Windows servers and clients. the Samba service can be used to share the Linux file system as a cifs/smb Network file share and The Linux printer is shared as a cifs/smb printer share.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/B8/wKiom1hWmX6iilYfAACBvkwdSo0361.png "title=" Picture 1.png "alt=" Wkiom1hwmx6iilyfaacbvkwdso0361.png "/>

# # 1. Installation Services ##

1. Install package yum install Samba-common samba-client samba-y

L Samba-common – support files for Samba
L samba-client – Client application
L Samba – Server application

View ports

# # 2. User Management ##

Add a System User

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/B4/wKioL1hWmYmxvXxnAAAdon3cIkI750.png "title=" Picture 2.png "alt=" Wkiol1hwmymxvxxnaaadon3ciki750.png "/>

Set User password

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/B8/wKiom1hWmZSwMHdNAABos7kFszE466.png "title=" Picture 3.png "alt=" Wkiom1hwmzswmhdnaabos7kfsze466.png "/>

View User

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8B/B4/wKioL1hWmZ_j6lclAAAa54v50E8933.png "title=" Picture 4.png "alt=" Wkiol1hwmz_j6lclaaaa54v50e8933.png "/>

Delete User

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8B/B8/wKiom1hWmarz403NAAARz-bT948045.png "title=" Picture 5.png "alt=" Wkiom1hwmarz403naaarz-bt948045.png "/>

# # 3. File Share Management ##

Access control for the user's home directory

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/8B/B8/wKiom1hWmcDCCSUHAAANPqxiUhg651.png "title=" Picture 7.png "alt=" Wkiom1hwmcdccsuhaaanpqxiuhg651.png "/>

Test

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8B/B4/wKioL1hWmdDArYyAAADTgISYiwo154.png "title=" Picture 6.png "alt=" Wkiol1hwmddaryyaaadtgisyiwo154.png "/>

Shared Services Directory

Vim/etc/samba/smb.conf

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/8B/B4/wKioL1hWme-RVxV1AAAnv8Gcadc840.png "style=" float: none; "title=" Image 8.png "alt=" Wkiol1hwme-rvxv1aaanv8gcadc840.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/8B/B8/wKiom1hWme_CsbqlAAAzSbeX9cU317.png "style=" float: none; "title=" Image 9.png "alt=" Wkiom1hwme_csbqlaaazsbex9cu317.png "/>


Test

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8B/B4/wKioL1hWmf-yOXiXAADL5F7nPQU255.png "title=" Picture 10.png "alt=" Wkiol1hwmf-yoxixaadl5f7npqu255.png "/>

Shared system Directory

Vim/etc/samba/smb.conf

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8B/B8/wKiom1hWmlLhdTQ3AAAWgjZKSBs102.png "style=" float: none; "title=" Image 11.png "alt=" Wkiom1hwmllhdtq3aaawgjzksbs102.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/B8/wKiom1hWmlOxloIKAAAL53bkpbw312.png "style=" float: none; "title=" Image 12.png "alt=" Wkiom1hwmloxloikaaal53bkpbw312.png "/>


Test

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8B/B4/wKioL1hWmmOCX_0yAACHLEduu4Q858.png "title=" Picture 13.png "alt=" Wkiol1hwmmocx_0yaachleduu4q858.png "/>

# # 4. Anonymous user access to directory control ##

Vim/etc/samba/smb.conf

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8B/B4/wKioL1hWmnSTzFf8AAAwGRZTh_w015.png "style=" float: none; "title=" Image 14.png "alt=" Wkiol1hwmnstzff8aaawgrzth_w015.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/8B/B4/wKioL1hWmnXT7ptcAAA1-Ogov1k967.png "style=" float: none; "title=" Image 15.png "alt=" Wkiol1hwmnxt7ptcaaa1-ogov1k967.png "/>


Restart Service

Systemctl Restart Smb.service

Test

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/B8/wKiom1hWmn-iGvRwAADKkRyIpFI553.png "title=" Picture 16.png "alt=" Wkiom1hwmn-igvrwaadkkryipfi553.png "/>


Linux Notes 3-7 Samba

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.