|
楼主 |
发表于 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 |
|