尝试配置发现win7上权限正常,但是win10上却全部能能删除,查资料查不到,操作设置有点复杂,为自己写成,望有帮助。
安装等等就不赘述,百度一大堆,只贴配置文件。
[root@localhost ~]# cat /etc/*relea* |grep -i 7.6
CentOS Linux release 7.6.1810 (Core)
Derived from Red Hat Enterprise Linux 7.6 (Source)
CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
[root@localhost ~]# crontab -l
*/1 * * * * /root/chmod.sh
[root@localhost ~]# cat /root/chmod.sh
#!/bin/bash
/usr/bin/chown -R root:root /share
[root@localhost ~]#
[root@localhost ~]# cat /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
security = user
# force user = root
passdb backend = tdbsam
fstype = NTFS
[user]
comment =user
path = /share
public=yes
valid users=user
browseable=yes
writable=yes
create mask=1000
directory mask = 0777
forece dirctory mode = 0777
write list = user
admin users = root
[admin]
comment = admin
path=/share
public=yes
valid users =admin
browseable=yes
writable=yes
admin users = admin
#create mask=1744
#force create mask=1744
create mask=1700
force create mask=1700
directory mask=07777
force directory mode=0777
#force create mode = 0777
force user = root
write list = admin
[lee]
comment =lee
path = /share
public=yes
acl check permissions = yes
enable privileges = yes
read only = yes
valid users=lee
browseable=yes
#writable=yes
create mask=444
force create mask = 1000
directory mask = 0777
force dirctory mode = 0777
force unknown acl user = yes
write list = lee
[root@localhost ~]#
阅读(1816) | 评论(0) | 转发(0) |