找回密码
 注册
查看: 2238|回复: 28

samba 这点功能都实现不了!

[复制链接]
发表于 2005-6-20 18:37:16 | 显示全部楼层 |阅读模式
用户看见的就是他可以访问的共享!
发表于 2005-6-20 21:08:45 | 显示全部楼层
samba能否实现我不知道,windows可以实现吗?
回复

使用道具 举报

发表于 2005-6-20 23:24:32 | 显示全部楼层
什么乱七八糟的....
回复

使用道具 举报

发表于 2005-6-21 23:28:27 | 显示全部楼层
设置成登录用户只能访问对应的用户名目录就 OK 咯。哎,说不清楚,自己看 manpage 去。
回复

使用道具 举报

发表于 2005-6-22 09:35:45 | 显示全部楼层
楼主说清楚啊。你的意思是不是想让用户只能看见自己有权访问的资源?
回复

使用道具 举报

 楼主| 发表于 2005-7-10 09:00:55 | 显示全部楼层
是啊, 就是隐藏自己无权访问目录的问题!!!!! 你有更好的解决方案吗? 为什么config file = /etc/samba/smb.conf.%G  (#对于不同的组使用不同的配置文件,) 不起作用?我用的是samba3.0
回复

使用道具 举报

发表于 2005-7-11 02:36:58 | 显示全部楼层
添加samba用户
设置共享目录的visibility属性好像就可以了巴~
回复

使用道具 举报

发表于 2005-7-11 15:20:38 | 显示全部楼层
谁说不可以,samba的灵活度比windwos下的高很多.
回复

使用道具 举报

发表于 2005-7-11 17:11:58 | 显示全部楼层
这个支持,
发表于: 2005-07-11, 3:20pm    发表主题:  



谁说不可以,samba的灵活度比windwos下的高很多.
_________________
上帝欲将其灭亡,必先让其疯狂.

我郁闷的是,我两台不在同一个网络内PC之间想用Netbios,相互访问。安装Linux的可以正常访问安装Windows系统的,安装Windows系统,硬说找到目录主机。。。
回复

使用道具 举报

发表于 2005-7-13 20:11:26 | 显示全部楼层

Re: samba 这点功能都实现不了!

[quote:cd4eeb069f="sailing123"]用户看见的就是他可以访问的共享![/quote]
我也正在为此苦恼,对于一个有很多部门的单位来说,用户看见的就是他可以访问的的共享更安全更简洁!
希望知道的说说,
楼主能说说你的组配置文件吗?
回复

使用道具 举报

发表于 2005-7-13 20:15:10 | 显示全部楼层
[quote:fc9e02efbe="jarson"]谁说不可以,samba的灵活度比windwos下的高很多.[/quote]
不知道你听明白楼主的意思没有
那你说说怎么做
回复

使用道具 举报

发表于 2005-7-13 22:13:33 | 显示全部楼层
以下是 man smb.conf 中有关  config file   的说明,E文好的翻译一下
config file (G)
              This  allows  you to override the config file to use, instead of
              the default (usually smb.conf). There is a chicken and egg prob‐
              lem here as this option is set in the config file!

              For this reason, if the name of the config file has changed when
              the parameters are loaded then it will reload them from the  new
              config file.

              This  option  takes  the  usual substitutions, which can be very
              useful.

              If the config file doesn’t exist then it won’t be loaded (allow‐
              ing you to special case the config files of just a few clients).

              No default

              Example: config file = /usr/local/samba/lib/smb.conf.%m
回复

使用道具 举报

发表于 2005-7-13 22:38:07 | 显示全部楼层
[quote:6e3a9005f2="sailing123"]是啊, 就是隐藏自己无权访问目录的问题!!!!! 你有更好的解决方案吗? 为什么config file = /etc/samba/smb.conf.%G  (#对于不同的组使用不同的配置文件,) 不起作用?我用的是samba3.0[/quote]

设置成 browseable = no 那么所有人都不能看见,包括 valid users
设置成 browseable = yes 所有人都可以看见共享名,这是我们不希望看到的。
楼主的写法不对,应该是 config file = /etc/samba/smb.conf.%m
而不是config file = /etc/samba/smb.conf.%G

如果不支持config file = /etc/samba/smb.conf.%G 的话,那么config file 对楼主是没什么用的。
另外不知道楼主在/etc/samba/建立对应的配置文件没有?如: smb.conf.mygoup
回复

使用道具 举报

 楼主| 发表于 2005-7-21 18:18:51 | 显示全部楼层
真感动,有这么多热心的人回贴,可惜还未解决, config file = /etc/samba/smb.conf.%m
指针对客户机netbios 名使用不同的配置文件, %m 变量为客户机netbiso名,客户机的数量很多,而组的数量是有限的几个,所以我想把%m用%G代替,在/etc/samba 下的对应的smb.conf.groups ,!config file = /etc/samba/smb.conf.%G 不起作用,别外一个功能相差不多的配置选项(include = /etc/samba/smb.conf.%G)也不起作用,下面为两个选项的man, 也没有说不可以使用%G变量呀!顺便问下第六楼,如何设置共享目录的visibility属性?

config file (G)
This allows you to override the config file to use, instead of the default (usually smb.conf). There is a chicken and egg problem here as this option is set in the config file!

For this reason, if the name of the config file has changed when the parameters are loaded then it will reload them from the new config file.

This option takes the usual substitutions, which can be very useful.

If the config file doesn't exist then it won't be loaded (allowing you to special case the config files of just a few clients).

No default

Example: config file = /usr/local/samba/lib/smb.conf.%m

include (G)
This allows you to include one config file inside another. The file is included literally, as though typed in place.

It takes the standard substitutions, except %u , %P and %S.

Default: include =

Example: include = /usr/local/samba/lib/admin_smb.conf

inherit acls (S)
This parameter can be used to ensure that if default acls exist on parent directories, they are always honored when creating a subdirectory. The default behavior is to use the mode specified when creating the directory. Enabling this option sets the mode to 0777, thus guaranteeing that default directory acls are propagated.

Default: inherit acls = no
回复

使用道具 举报

 楼主| 发表于 2005-7-21 18:23:10 | 显示全部楼层
"设置成 browseable = no 那么所有人都不能看见,包括 valid users
设置成 browseable = yes 所有人都可以看见共享名,这是我们不希望看到的。"  楼上的准确精炼地表达了我的意思, 最近在做samba PDC+LDAP认证,有兴趣的讨论下!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-16 05:32 , Processed in 0.030333 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表