selinux设置(允许有访问权限):
# chcon -t samba_share_t /share
ACL控制权限
# setfacl -m u:aa:rx /share
# setfacl -m u:bb:rwx /share
# vi /etc/samba/smb.conf
path = /share
write list = aa (aa有写权限)
read list = bb (bb有读权限)
hosts allow = 10.0.0. (允许访问的网段)
:wq
时间: 2024-10-22 06:10:47