configuration-templates – Diff between revs 184 and 185

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 184 Rev 185
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 -  
33 name resolve order = lmhosts host wins bcast 32 name resolve order = lmhosts host wins bcast
34   33  
35 # Standalone. 34 # Standalone.
36 local master = no 35 local master = no
37 domain master = no 36 domain master = no
38 preferred master = no 37 preferred master = no
39 security = user 38 security = user
40 # For compatibility with scripts. 39 # For compatibility with scripts.
41 passdb backend = smbpasswd 40 passdb backend = smbpasswd
42 add user script = /usr/sbin/useradd -d /nonexistent -s /usr/sbin/nologin %u 41 add user script = /usr/sbin/useradd -d /nonexistent -s /usr/sbin/nologin %u
43 map to guest = Bad User 42 map to guest = Bad User
44 guest account = nobody 43 guest account = nobody
45 # Allow some variable expansions to work. 44 # Allow some variable expansions to work.
46 #%M 45 #%M
47 hostname lookups = yes 46 hostname lookups = yes
48 #%m 47 #%m
49 #smb ports = 139 48 #smb ports = 139
50 # Extended attributes on files. 49 # Extended attributes on files.
51 ea support = yes 50 ea support = yes
52 map acl inherit = yes 51 map acl inherit = yes
53 store dos attributes = yes 52 store dos attributes = yes
54   53  
55 # Samba version support (support legacy clients). 54 # Samba version support (support legacy clients).
56 min protocol = NT1 55 min protocol = NT1
57   56  
58 # Samba modules. 57 # Samba modules.
59 # vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle crossrename io_uring aio_pthread 58 # 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 59 vfs objects = shadow_copy2 catia fruit streams_xattr acl_xattr recycle crossrename aio_pthread
61 shadow: snapdir = .zfs/snapshot 60 shadow: snapdir = .zfs/snapshot
62 shadow: sort = desc 61 shadow: sort = desc
63 shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M 62 shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
64 shadow:localtime = no 63 shadow:localtime = no
65 recycle:repository = .recycle/%U 64 recycle:repository = .recycle/%U
66 recycle:keeptree = yes 65 recycle:keeptree = yes
67 recycle:versions = yes 66 recycle:versions = yes
68 recycle:touch = yes 67 recycle:touch = yes
69 recycle:directory_mode = 0777 68 recycle:directory_mode = 0777
70 recycle:subdir_mode = 0700 69 recycle:subdir_mode = 0700
71 fruit:resource = file 70 fruit:resource = file
72 fruit:metadata = netatalk 71 fruit:metadata = netatalk
73 fruit:locking = netatalk 72 fruit:locking = netatalk
74 fruit:encoding = native 73 fruit:encoding = native
75 fruit:resource = xattr 74 fruit:resource = xattr
76 fruit:time machine = no 75 fruit:time machine = no
77 fruit:metadata = stream 76 fruit:metadata = stream
78 fruit:locking = none 77 fruit:locking = none
79 fruit:encoding = native 78 fruit:encoding = native
80 fruit:veto_appledouble = yes 79 fruit:veto_appledouble = yes
81 fruit:posix_rename = yes 80 fruit:posix_rename = yes
82 readdir_attr:aapl_finder_info = yes 81 readdir_attr:aapl_finder_info = yes
83 readdir_attr:aapl_max_access = yes 82 readdir_attr:aapl_max_access = yes
84 readdir_attr:aapl_rsize = yes 83 readdir_attr:aapl_rsize = yes
85 streams_xattr:store_stream_type = yes 84 streams_xattr:store_stream_type = yes
86 crossrename:sizelimit = 50 85 crossrename:sizelimit = 50
87 io_uring:num_entries = 128 86 io_uring:num_entries = 128
88 io_uring:sqpoll = no 87 io_uring:sqpoll = no
89 aio_linux:aio num events = 256 88 aio_linux:aio num events = 256
90 aio_pthread:aio open = true 89 aio_pthread:aio open = true
91   90  
92 ### Tweaks 91 ### Tweaks
93 # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072 92 # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072
94 socket options=TCP_NODELAY IPTOS_LOWDELAY 93 socket options=TCP_NODELAY IPTOS_LOWDELAY
95 # No extent-based allocation: ZFS 94 # No extent-based allocation: ZFS
96 strict allocate = no 95 strict allocate = no
97 # No sendfile on: ZFS 96 # No sendfile on: ZFS
98 use sendfile = no 97 use sendfile = no
99 # Requires aio_pthread as last module in vfs_objects 98 # Requires aio_pthread as last module in vfs_objects
100 aio read size = 1 99 aio read size = 1
101 aio write size = 1 100 aio write size = 1
102 # Enable raw rights and reads. 101 # Enable raw rights and reads.
103 read raw = yes 102 read raw = yes
104 write raw = yes 103 write raw = yes
105   104  
106 # Logging 105 # Logging
107 # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG 106 # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
108 log level = 1 107 log level = 1
109   108  
110 # Include LDAP configuration. 109 # Include LDAP configuration.
111 #include = /etc/samba/smb.conf.ldap 110 #include = /etc/samba/smb.conf.ldap
112   111  
113 # Include DFS. 112 # Include DFS.
114 #include = /etc/samba/smb.conf.dfs 113 #include = /etc/samba/smb.conf.dfs
115 114
116 # Include local settings. 115 # Include local settings.
117 include = /etc/samba/smb.conf.local 116 #include = /etc/samba/smb.conf.local
118   117  
119 # Include shares. 118 # Include shares.
120 include = /etc/samba/smb.conf.share 119 include = /etc/samba/smb.conf.share
121   120