configuration-templates – Diff between revs 183 and 184

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