configuration-templates – Blame information for rev 162

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
93 office 42 map to guest = Bad Password
94 office 43 guest account = nobody
82 office 44 # For compatibility with clients.
162 office 45 #client use spnego = no
46 #client ntlmv2 auth = no
47 acl allow execute always = True
48 # Extended attributes on files.
49 ea support = yes
50 map acl inherit = yes
51 store dos attributes = yes
81 office 52  
85 office 53 # Samba modules.
162 office 54 vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle aio_pthread
55 shadow: snapdir = .zfs/snapshot
56 shadow: sort = desc
57 shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
58 shadow:localtime = no
59 recycle:repository = .recycle/%U
60 recycle:keeptree = yes
61 recycle:versions = yes
62 recycle:touch = yes
63 recycle:directory_mode = 0777
64 recycle:subdir_mode = 0700
65 fruit:resource = file
66 fruit:metadata = netatalk
67 fruit:locking = netatalk
85 office 68 fruit:encoding = native
162 office 69 fruit:resource = xattr
70 fruit:time machine = no
71 fruit:metadata = stream
85 office 72 fruit:locking = none
162 office 73 fruit:encoding = native
74 fruit:veto_appledouble = yes
75 fruit:posix_rename = yes
76 readdir_attr:aapl_finder_info = yes
77 readdir_attr:aapl_max_access = yes
78 readdir_attr:aapl_rsize = yes
79 streams_xattr:store_stream_type = yes
85 office 80 aio_linux:aio num events = 256
162 office 81 aio_pthread:aio open = true
83 office 82  
162 office 83 # Turn off host mDFS for now.
84 host msdfs = no
85  
85 office 86 ### Tweaks
87 # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072
162 office 88 socket options=TCP_NODELAY IPTOS_LOWDELAY
89 # No extent-based allocation: ZFS
90 strict allocate = no
91 # Slowing down SMB4
92 server signing = no
93 # No sendfile on: ZFS
94 use sendfile = no
83 office 95 max open files = 65535
162 office 96 min receivefile size = 16384
97 # Use max packet size possible in negotiation.
98 max xmit = 65536
85 office 99 # Requires aio_linux as last module in vfs_objects
162 office 100 aio read size = 1
101 aio write size = 1
102 # 1 MiB cache per file
103 #write cache size = 1048576
104 getwd cache = true
83 office 105 read raw = yes
106 write raw = yes
162 office 107 # Consistency accross filesystems.
108 oplocks = on
81 office 109 kernel oplocks = yes
83 office 110 server multi channel support = yes
162 office 111 # Kill stale connections without open files.
112 deadtime = 15
113 max protocol = SMB2
114  
81 office 115 # Logging
85 office 116 # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
94 office 117 log level = 1
81 office 118  
95 office 119 # Include LDAP configuration.
120 #include = /etc/samba/smb.conf.ldap
121  
81 office 122 # Include local settings.
123 include = /etc/samba/smb.conf.local
124  
125 # Include shares.
126 include = /etc/samba/smb.conf.share
162 office 127  
128 # Include DFS.
129 #include = /etc/samba/smb.conf.dfs
130