1. Edit the samba configuration file (Vim/etc/samba/smb. conf)
Take the shared idea directory as an example!
[Region]
Comment = comment
Path =/Signature
Writable = Yes
Create mask = 1606
Directory mask = 1606
Read list = user2
2. Enable Linux to support posix acl (this posix acl function is officially supported on Linux kernel 2.6 and laterBack-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 .)
Edit/etc/fstab
Add a row:
/Dev/sda1/home ext3 ACL 1 2
Restart!
3. Compile a small script
#! /Bin/bash
Mkdir plugin
Chmod 077/clusters
Chown user4.user4/login
Chmod o + T/second
Setfacl-m d: U: user1: rwx/logs
Setfacl-m d: U: user2: R/role
Setfacl-m d: U: user3: W/Example
Run the script and restart SMB!
Remember to turn off the firewall !!!
If you are interested in posix acl, see http://jianghuo495593541.download.csdn.net