For more information about the test results of ACL + Samba-Linux Enterprise Application-Linux server application, see the following. After Samba is configured, the control document is successfully managed and tested.
The requirements of our company are as follows (I only need to make the steps required by our company and correct them slightly)
The shared directory To_manager only has full permissions for the manager User.
Other users only have the permission to copy and create files to this directory. However, files cannot be deleted, and files cannot be copied or read.
Steps:
1. Change smb. conf as follows:
[To_manager]
Comment = To_manager
Path =/To_manager
Writable = yes
Create mask = 1600
Directory mask = 1600 (number in the following table) can also be changed to 1700
2. Enable Linux to support posix acl (this posix acl function is officially supported on Linux kernel 2.6, and then back-port
To 2.4 kernel. ACL can be used in common file systems, such as ext3, xfs, jfs, and ReiserFS. Of course, you must start the ACL when compiling the kernel .)
You can also add the following options to/etc/fstab:
/Dev/sda1/home ext3, acl 1 2
3. Write a small script
#! /Bin/bash
Mkdir/To_manager
Chmod 777/To_manager
Chown manager: manager/To_manager
Chmod o + t/To_manager
Setfacl-m d: u: manager: rwx/To_manager
Run the script and restart smb.
Some of the above texts are well written from a post on www.chinaunix.net. I am not sure about its results. Therefore, the test was conducted.
Test results:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blog.51cto.com/attachment/200809/200809281222599525484.jpg'); ">
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.