Samba官网高对比度配色看的实在辣眼睛,挖个坑翻译一下smb的config示例文档。
#
Debian GNU/linux平台下Samba组件的配置示例
#
这是Samba的主要配置文件。你应当阅读smb.conf(5)说明页面,以能够理解本文中的选项。Samba有非常多可配置选项,且大部分未在此列出。
# 本文囊括了一些有必要经常调整的选项
# 一些被“;”标出的选项,用于区别默认选项
# 用“#”标注的选项,是被认为重要、且默认执行的选项
#
# 注意:在任何时候修改此文件,你都应当运行“testparm”命令,以确认你没有造成语法错误
#======================= 全局设置=======================
[global]
## 浏览、认证 ###
# 将此项修改为你的Samba服务器所在的工作组、域服务
workgroup = WORKGROUP
# 服务器名和域描述区域相同server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
# Windows 网络名服务支持部分:
# WINS 支持 - 告知Samba的NMBD组件使其支持Windows服务器
# wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# 这项会阻止nmbd通过DNS搜索NetBIOS名
dns proxy = no
#### 网络 ####
# 用来绑定特定接口、网络的指定设置
# 此项课用于接口名或IP地址、掩码;
# 通常使用接口名
; interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
#### 调试、统计 ####
# 此项会告知Samba给每台连接的设备使用独立的日志文件来记录。
log file = /var/log/samba/log.%m
# 限制每个独立日志文件的大小(in KiB).
max log size = 1000
# 如果你想让Samb