samba的目录权限

62 views
Skip to first unread message

大熊

unread,
Apr 20, 2014, 10:39:05 PM4/20/14
to sh...@googlegroups.com
有一个共享目录share,在其下有若干个子目录share1,share2,……
[share]
   path = /home/share
   comment = Work Share
   writeable = yes
   browseable = yes

   create mask = 640
   directory mask = 0700
   force directory mode = 1000

有组group1~5,如何设置使得这些组对各个子目录有不同的读写权限,这操作希望能通过windows文件夹的“安全”属性进行设置
我现在的配置,通过windows下安全设置,只能对share目录本身所在的组进行配置,group1~5是无法找到的,所以也没法配置

--
立志在女儿把我搞崩溃前把她养大
看着女儿一天天长大,可惜我还是菜鸟

Jianlei Zhang

unread,
Apr 21, 2014, 5:25:09 AM4/21/14
to sh...@googlegroups.com
简单点的就[share1]、[share2]各个目录分别配置。

要不就上acl,记得刚学Linux那会儿配过,一晃好多年……
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到
> shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

--
此致

张建雷 敬上

大熊

unread,
Apr 21, 2014, 11:44:06 PM4/21/14
to sh...@googlegroups.com
windows下设置子目录权限时,可以设置各个用户的acl,以及创建该目录本身所在的组的acl,但无法设置其它组(这些组在windows是不可见)

本来想只设置一个共享目录,貌似搞不定


您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。

要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout



--
立志在女儿把我搞崩溃前把她养大
看着女儿一天天长大,可惜我还是菜鸟

大熊

unread,
Apr 23, 2014, 6:02:27 AM4/23/14
to sh...@googlegroups.com
折腾了许久

原来在linux端调用"net groupmap add ntgroup=xxx unixgroup=xxx type=l",就可以把linux的组映射到windows下,然后在windows中可以配置这些组的权限了

看来用例比较偏,google没啥有用结果

--
立志在女儿把我搞崩溃前把她养大
看着女儿一天天长大,可惜我还是菜鸟

Isspy

unread,
Apr 25, 2014, 11:52:52 AM4/25/14
to sh...@googlegroups.com
Linux里装个windows吧,windows server 2008 AD+磁盘权限管理 要多好用 要多顺手 权限管理的福音啊。
当为了折腾只能上传 修改 不能删除 txt等编辑无副本文档时可以用,一遇到word&office2007以上的就傻逼了。

在 2014年4月21日星期一UTC+8上午10时39分05秒,大熊写道:

Chaos Eternal

unread,
Apr 26, 2014, 2:32:55 AM4/26/14
to sh...@googlegroups.com
参见我刚才对LVM的评论。
Reply all
Reply to author
Forward
0 new messages