configuration-templates – Diff between revs 180 and 181

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