configuration-templates – Blame information for rev 184

Subversion Repositories:
Rev:
Rev Author Line No. Line
81 office 1 ###########################################################################
2 ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ##
3 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
4 ## rights of fair usage, the disclaimer and warranty conditions. ##
5 ###########################################################################
6 ## Optimized standalone configuration template for Samba servers. ##
7 ## ##
8 ## Ideal for: ##
9 ## * Virtual machine file sharing ##
10 ## ##
11 ## Requirements: ##
86 office 12 ## * Samba 4.x ##
81 office 13 ## ##
14 ## File placement layout: ##
15 ## / ##
16 ## `-- etc ##
17 ## `-- samba ##
18 ## |-- smb.conf ##
19 ## |-- smb.conf.local ##
95 office 20 ## |-- smb.conf.share ##
21 ## `-- smb.conf.ldap ##
81 office 22 ## ##
23 ## Files Description: ##
24 ## * /etc/samba/smb.conf (this file) ##
25 ## * /etc/samba/smb.conf.local (local server-site settings) ##
26 ## * /etc/samba/smb.conf.share (samba shares go here) ##
95 office 27 ## * /etc/samba/smb.conf.ldap (optional ldab configuration) ##
81 office 28 ## ##
29 ###########################################################################
30  
31 [global]
32 bind interfaces only = yes
33 name resolve order = lmhosts host wins bcast
34  
35 # Standalone.
162 office 36 local master = no
37 domain master = no
38 preferred master = no
93 office 39 security = user
81 office 40 # For compatibility with scripts.
41 passdb backend = smbpasswd
183 office 42 add user script = /usr/sbin/useradd -d /nonexistent -s /usr/sbin/nologin %u
165 office 43 map to guest = Bad User
94 office 44 guest account = nobody
165 office 45 # Allow some variable expansions to work.
46 #%M
47 hostname lookups = yes
48 #%m
49 #smb ports = 139
162 office 50 # Extended attributes on files.
51 ea support = yes
52 map acl inherit = yes
53 store dos attributes = yes
81 office 54  
165 office 55 # Samba version support (support legacy clients).
56 min protocol = NT1
57  
85 office 58 # Samba modules.
165 office 59 # vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle crossrename io_uring aio_pthread
60 vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle crossrename aio_pthread
162 office 61 shadow: snapdir = .zfs/snapshot
62 shadow: sort = desc
63 shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
64 shadow:localtime = no
65 recycle:repository = .recycle/%U
66 recycle:keeptree = yes
67 recycle:versions = yes
68 recycle:touch = yes
69 recycle:directory_mode = 0777
70 recycle:subdir_mode = 0700
71 fruit:resource = file
72 fruit:metadata = netatalk
73 fruit:locking = netatalk
85 office 74 fruit:encoding = native
162 office 75 fruit:resource = xattr
76 fruit:time machine = no
77 fruit:metadata = stream
85 office 78 fruit:locking = none
162 office 79 fruit:encoding = native
80 fruit:veto_appledouble = yes
81 fruit:posix_rename = yes
82 readdir_attr:aapl_finder_info = yes
83 readdir_attr:aapl_max_access = yes
84 readdir_attr:aapl_rsize = yes
85 streams_xattr:store_stream_type = yes
165 office 86 crossrename:sizelimit = 50
87 io_uring:num_entries = 128
88 io_uring:sqpoll = no
85 office 89 aio_linux:aio num events = 256
162 office 90 aio_pthread:aio open = true
83 office 91  
85 office 92 ### Tweaks
93 # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072
162 office 94 socket options=TCP_NODELAY IPTOS_LOWDELAY
95 # No extent-based allocation: ZFS
96 strict allocate = no
97 # No sendfile on: ZFS
98 use sendfile = no
165 office 99 # Requires aio_pthread as last module in vfs_objects
162 office 100 aio read size = 1
101 aio write size = 1
165 office 102 # Enable raw rights and reads.
83 office 103 read raw = yes
104 write raw = yes
162 office 105  
81 office 106 # Logging
85 office 107 # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
94 office 108 log level = 1
81 office 109  
95 office 110 # Include LDAP configuration.
184 office 111 #include = /etc/samba/smb.conf.ldap
165 office 112  
113 # Include DFS.
184 office 114 #include = /etc/samba/smb.conf.dfs
95 office 115  
81 office 116 # Include local settings.
184 office 117 include = /etc/samba/smb.conf.local
81 office 118  
119 # Include shares.
184 office 120 include = /etc/samba/smb.conf.share