configuration-templates

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 161  →  ?path2? @ 162
/samba/4/standalone/smb.conf
@@ -33,7 +33,9 @@
name resolve order = lmhosts host wins bcast
 
# Standalone.
preferred master = yes
local master = no
domain master = no
preferred master = no
security = user
# For compatibility with scripts.
passdb backend = smbpasswd
@@ -40,39 +42,76 @@
map to guest = Bad Password
guest account = nobody
# For compatibility with clients.
client use spnego = no
client ntlmv2 auth = no
#client use spnego = no
#client ntlmv2 auth = no
acl allow execute always = True
# Extended attributes on files.
ea support = yes
map acl inherit = yes
store dos attributes = yes
 
# Samba modules.
vfs objects = catia fruit streams_xattr
# AIO / Linux
event:backend = aio
posix:aio = yes
# Better compatibility with OSX.
ea support = yes
fruit:aapl = yes
vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle aio_pthread
shadow: snapdir = .zfs/snapshot
shadow: sort = desc
shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
shadow:localtime = no
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
fruit:resource = file
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = native
fruit:resource = xattr
fruit:time machine = no
fruit:metadata = stream
fruit:locking = none
fruit:metadata = stream
fruit:resource = file
fruit:encoding = native
fruit:veto_appledouble = yes
fruit:posix_rename = yes
readdir_attr:aapl_finder_info = yes
readdir_attr:aapl_max_access = yes
readdir_attr:aapl_rsize = yes
streams_xattr:store_stream_type = yes
aio_linux:aio num events = 256
aio_pthread:aio open = true
 
# Turn off host mDFS for now.
host msdfs = no
 
### Tweaks
# Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072
socket options=TCP_NODELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST
use sendfile = true
socket options=TCP_NODELAY IPTOS_LOWDELAY
# No extent-based allocation: ZFS
strict allocate = no
# Slowing down SMB4
server signing = no
# No sendfile on: ZFS
use sendfile = no
max open files = 65535
min receivefile size = 131072
min receivefile size = 16384
# Use max packet size possible in negotiation.
max xmit = 65536
# Requires aio_linux as last module in vfs_objects
aio read size = 16384
aio write size = 16384
write cache size = 262144
aio read size = 1
aio write size = 1
# 1 MiB cache per file
#write cache size = 1048576
getwd cache = true
read raw = yes
write raw = yes
# Close connection on idle time (minutes).
# Consistency accross filesystems.
oplocks = on
kernel oplocks = yes
server multi channel support = yes
# Kill stale connections without open files.
deadtime = 15
max protocol = SMB2
 
# Logging
# 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
log level = 1
@@ -85,3 +124,7 @@
 
# Include shares.
include = /etc/samba/smb.conf.share
 
# Include DFS.
#include = /etc/samba/smb.conf.dfs