File Sharing within an enterprise-samba service

Source: Internet
Author: User
File Sharing within an enterprise-samba service-general Linux technology-Linux technology and application information. For details, refer to the following section. File Sharing within an enterprise-samba service
A company that uses windows as its computer system. Files shared between departments or departments are obtained from a computer within a department as a carrier to store files. Although you can set a password to control access, you cannot control file permissions. Shared items can be seen by others. By using the linux samba service, you can effectively control it.
1. First, add sufficient space for/usr. For example, a company has seven departments and each Department allocates 1 GB of space for use. Create seven valid accounts and specify the main directory under the directory of the corresponding account name under/usr/data.
And change the folder owner and group owner as the corresponding users. It is best to set the permission to 700.
Drwx ------ 2 maid 4096 Jun 15
Drwx ------ 2 mth02 mth02 4096 Jun 15 mth02
Drwx ------ 2 mth03 mth03 4096 Jun 15 mth03
Drwx ------ 2 maid 4096 Jun 15
Drwx ------ 3 maid 4096 Jun 15 2009
Drwx ------ 2 maid 4096 Jun 15
Drwx ------ 2 mth07 mth07 4096 Jun 15 mth07
Drwxrwxrwx 2 public 4096 Jun 15 2009 public
You also need to set 777 permissions for/usr and/usr/data respectively.
2. Create an smb User
Smbpasswd? A User Name
3. Configure the smb service
Main configuration parameters
[% U]
Comment = Home Directories
Path =/usr/data/% U
Browseable = yes
Writable = yes
Valid users = % U
[Public]
Comment = public
Path =/usr/data/public
Read only = no
Public = yes
Browseable = yes
Writable = yes
The first definition is that every user will log on to his/her home directory, so that he/she will not see shared folders in other departments. The second definition is a public folder that can be seen by colleagues in each department after they enter.
Configure and enable the QUOTA service.
Some of the notes are simple and only the overall thinking is provided. Please understand the shortcomings.
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.