#----------------------- Network Related Options-------------------------
#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
workgroup = WORKGROUP //定义工作组,也就是windows中的工作组概念
server string =David Samba Server Version %v //定义Samba服务器的简要说明
netbios name =DavidSamba //定义windows中显示出来的计算机名称
#--------------------------- Logging Options-----------------------------
#
# Log File let you specify where to put logs and how to split them up.
logfile = /var/log/samba/log.%m
//定义Samba用户的日志文件,%m代表客户端主机名
//Samba服务器会在指定的目录中为每个登陆主机建立不同的日志文件
#----------------------- Standalone Server Options------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)