|
请高人指点!
config file = /etc/samba/etc/smb.conf.%G
include = /etc/samba/etc/smb.conf.%G
samba 配置中这两项任何一行都不起作用!当然/etc/samba/etc/smb.conf.XX 文件存在,(XX是每个不同的组名)我的用意是对于不同的组登录使用不的配置文件,好为每个组定制共享.也看了man, 也没有说不可以用%G变量!!我的系统为RHEL3.0 ,samba3.0. 相关man如下!
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 |
|