1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| [global]
workgroup = MYGROUP # 工作组名称
server string = Samba Server Version %v # SMB服务器描述信息
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 127. 192.168.12. 192.168.13.
# --------------------------- Logging Options -----------------------------
# logs split per machine
log file = /var/log/samba/log.%m # 每个客户端的日志保存位置
# max 50KB per log file, then rotate
max log size = 50 # 每个日志最大为50KB,超过就会滚动
# ----------------------- Standalone Server Options ------------------------
security = user # smb安全级别,有user,、share、server不过后两个已废弃
passdb backend = tdbsam # tdb数据库格式保存密码
#============================ Share Definitions ==============================
[homes]
comment = Home Directories # 注释信息
browseable = no # 用户是否可浏览
writable = yes # 用户是否有写权限
; valid users = %S # 合法用户
; valid users = MYDOMAIN\%S #
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
; [Profiles]
; path = /var/lib/samba/profiles
; browseable = no
; guest ok = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
; [public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; writable = yes
; printable = no
; write list = +staff
|