Real case: Setup and configuration of samba Server

Source: Internet
Author: User
Real case: deployment and configuration of samba server [plain] Case: The company has two departments, sales/market. jack/tom and zhang/shen are members respectively. this is the company's requirement. the department's data is forbidden from access by other departments, and members of this department cannot...
Real case: deployment and configuration of samba server [plain] Case: The company has two departments, sales/market. jack/tom and zhang/shen are members respectively. the requirements of the Company are as follows: access from other departments is prohibited from the information of the department, and members of the department cannot interfere with the documents of the other party. However, the ceo has the right to access the information of all departments. In addition, the public files of the department are stored in the public directory and can only be downloaded. first, install the smb service yum-y install samba * -- skip-broken iptables-F www.2cto.com service iptables save vi/etc/selinux/config (SELINUX = disabled) setsebool-P samba_enable_home_dirs on/etc/rc. d/init. d/smb start chkconfig -- level 3 5 smb on and then ..... 1. create a user and group groupadd sales groupadd market for user in jack tom do useradd-g sales $ user smbpasswd-a $ user done for user in zhang shen do useradd-g market $ user smbpasswd- a $ user done www.2cto.com useradd ceo passwd ceo 2. create the shared directory cd/home/mkdir sales mkdir market 3. set directory permissions cd/home/chown ceo sales chown ceo market chgrp sales chgrp market chmod 1770 sales chmod 1770 Market 4. modify the configuration file (add share) vi/etc/samba/smb. conf www.2cto.com [sales] path =/home/sales/valid users = @ sales ceo write list = @ sales ceo writable = yes [market] path =/home/market/valid users = @ market ceo write list = @ market ceo writable = yes [public] path =/home/pubshare/writable = no in windows, run \ 192.168.17.130 test!
 
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.