免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: lovegqin

[samba] 终于实现samba可写不可删除 [复制链接]

论坛徽章:
0
发表于 2006-12-07 11:28 |显示全部楼层
记得原来楚兄的linux教程一开始就讲了这个acl,我想这个应该也是用acl吧,果然!

论坛徽章:
0
发表于 2006-12-27 11:53 |显示全部楼层

ding

强!顶顶顶

论坛徽章:
0
发表于 2006-12-27 22:28 |显示全部楼层
学习……

论坛徽章:
0
发表于 2007-01-09 17:56 |显示全部楼层
收到

论坛徽章:
0
发表于 2007-01-19 09:51 |显示全部楼层
学习

论坛徽章:
0
发表于 2007-01-19 15:50 |显示全部楼层
force directory mode = 1777  试试,会有其他感觉的

论坛徽章:
0
发表于 2007-02-14 00:07 |显示全部楼层
看了版主好几篇关于samba的文章及实现了samba的可写不可删除,非常好。支持。向您学习。
我是在OpenBSD上建了个samba服务器,一直没能做到可写不可删除,全部开放。依照您的文章,我做了多次试验,现可以上传文件,不可以删除文件。但不能建立子目录,不能编辑和复制文件。能否做到建子目录,编辑复制文件?请版主给我帮助指正。谢谢。现将samba配置文件如下:
# Global parameters
[global]
        workgroup = MYGROUP
        server string = Samba Server
        os level = 66
        wins proxy = Yes
        wins support = Yes

[homes]
        comment = Home Directories
        valid users = %S
        write list = %S
        read only = No
        create mask = 0644
        browseable = No

[student]
        comment = student's file
        path = /home/student
        read only = No
        create mask = 01444
        force create mode = 01444
        directory mask = 01444
另外,管理student目录需要给老师全权限,怎样设置?我在[student]中加入force user = tong (tong为老师)但不行。

论坛徽章:
0
发表于 2007-02-14 08:39 |显示全部楼层
想建立子目录,权限调整为1777
另外,管理student目录需要给老师全权限,怎样设置?我在[student]中加入force user = tong (tong为老师)但不行。

chown -R tong:tong  /home/student
setfacl -R -m u:tong:rwx /home/student

论坛徽章:
0
发表于 2007-02-14 12:32 |显示全部楼层
权限调整为1777所建的目录student用户可以删除,不行.
OpenBSD下没有找到setfacl,是不是不支持?

论坛徽章:
0
发表于 2007-02-14 14:08 |显示全部楼层
原帖由 czjin 于 2007-2-14 12:32 发表
权限调整为1777所建的目录student用户可以删除,不行.
OpenBSD下没有找到setfacl,是不是不支持?


freebsd下的ACL不是POSIX ACL 而是UFS_ACL
关于它的文章,你可以参考一下
http://www.freebsd.org/doc/zh_CN ... andbook/fs-acl.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP