Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9086
  • 博文数量: 1
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-15 13:16
文章分类

全部博文(1)

文章存档

2019年(1)

我的朋友

分类: LINUX

2019-01-17 16:26:43

尝试配置发现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) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~