-
Notifications
You must be signed in to change notification settings - Fork 0
/
smb.conf
44 lines (38 loc) · 1.1 KB
/
smb.conf
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
44
[global]
workgroup = WORKGROUP
server string = Samba Server
server role = standalone server
dns proxy = no
disable netbios = yes
# This tells Samba to use a separate log file for each machine that connects
log file = /var/log/samba/log.%m
max log size = 50
# Security
security = user
passdb backend = tdbsam:/config/pass.db
smb encrypt = required
map to guest = Never
client ipc max protocol = SMB3
client ipc min protocol = SMB3
client max protocol = SMB3
client min protocol = SMB3
server max protocol = SMB3
server min protocol = SMB3
# Performance
use sendfile = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=131072 SO_SNDBUF=131072
# File permissions
force user = smbuser
force group = smbuser
create mask = 0600
directory mask = 0700
force create mode = 0600
force directory mode = 0700
# Disable printers
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
# Include the runtime configuration.
include = /etc/samba/runtime.conf