Build enterprise-level file sharing service with samba service

Source: Internet
Author: User

Using the samba service, you can easily build an enterprise-level file sharing service, which is easier to configure than the NTFS + sharing permissions of windows. samba can directly interact with users through the kernel, higher access efficiency.
--------------------------------
Company department:
Technical Department: technical
Customer Service Department: customer
Sales Department: sales
Description of Department members:
Technical Team member: dennis...
Customer Service Team member: lulu...
Sales team member: amy...
General Manager: sfzhang
File Sharing requirements:
1. Each department member has read and write permissions on their shared folders.
2. The general manager of the company has the read permission on all the files of all Department members and the write permission on the folders of the technical department.
3. Members of the Sales Department cannot see the files shared by other members of the department, and the files shared by other departments are read-only.
4. The customer service department members have read-only permission on file sharing between the sales department and the technical department.
5. Members of the technical department cannot access files shared by other departments.
--------------------------------
1. directly use yum to install the samba service for convenience.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/03150020Q-0.jpg "/>

2. Create a data sharing directory.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0315005225-1.jpg "/>

3) Add a user group. Each department corresponds to a group.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/03150011Y-2.jpg "/>

4) Add a user and add the user to the group. Members of the sales department do not need to be added to the group ).

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0315005U3-3.jpg "/>

5) map system users to samba accounts.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0315003635-4.jpg "/>

6) configure the main configuration file of samba. The last two lines indicate that samba recognizes sub-configuration files starting with a system user or group, similar to Nginx vhosts.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/0315004135-5.jpg "/>

7) configure the samba sub-configuration file.

Parameter description: [...] indicates that the shared name @ technical indicates that users in this group can access

The following is the sharing settings between the technical department and the customer service department.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/0315005946-6.jpg "alt =" "/>

The sales department personnel cannot see the shared files of other members of the department. Therefore, each member must configure an independent configuration file.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/0315006463-7.jpg "alt =" "/>

The shared folder of the general manager is only accessible to him and is read-only to all the shared folders of other departments.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/0315001240-8.jpg "alt =" "/>

8) Start the samab service and set to automatically load the smb service upon startup.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/03150032L-9.jpg "/>

9) test whether the smba service configuration is OK.

Access samba with dennis. This user can only see the technical shared directory and has the permission to add or delete files in the directory.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/0315002P6-10.jpg "alt =" "/>

Using the sfzhang account of the general manager to access samba, You can have read permission on all shared files and write permission on your shared files.

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131228/031500GI-11.jpg "alt =" "/>

So far, an enterprise-level file sharing service has been built, and different requirements can be fulfilled through samba sub-configuration files.

 

 

 

This article from the "simple dream catcher" blog, please be sure to keep this source http://sfzhang88.blog.51cto.com/4995876/1067116

Related Article

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.