# vim /etc/samba/smb.conf
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[database]
comment = Do not arbitrarily modify the database file
path = /home/database
public = no
writable = yes
Samba 服务配置Samba配置文件 /etc/samba/smb.confSamba服务程序中的参数及作用[global]参数作用workgroup=MYGROUP#工作组名称server string = Samba Server Version %v#服务器介绍信息,参数%v为显示SMB版本号log file=/var/log/samba/log.%m#定义日志文件的存放位置与名称,参数%m为来访的主机名max long size = 50