QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 695|回复: 0

samba 对不同组使用不同配置文件问题!!!

[复制链接]
发表于 2005-7-21 16:21:30 | 显示全部楼层 |阅读模式
请高人指点!
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 16:08 , Processed in 0.039624 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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