Samba配置全解析:从基础到实战
1. Samba配置文件选项
Samba拥有超过200个配置选项,下面先介绍一些可用于修改配置文件本身的选项。配置文件并非一成不变,在处理配置选项时,可指示Samba包含甚至替换某些配置选项。相关选项总结如下表:
| Option | Parameters | Function | Default | Scope |
| — | — | — | — | — |
| config file | string (fully - qualified name) | Sets the location of a configuration file to use instead of the current one. | None | Global |
| include | string (fully - qualified name) | Specifies an additional segment of configuration options to be included at this point in the configuration file. | None | Global |
| copy | string (name of share) | Allows you to clone the configuration options of another share in the current share. | None | Share |
1.1 config file
全局的config file选项指定了一个替换配置文件,当遇到该选项时会加载此文