configuration-templates – Blame information for rev 95

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.
36 preferred master = yes
93 office 37 security = user
81 office 38 # For compatibility with scripts.
39 passdb backend = smbpasswd
93 office 40 map to guest = Bad Password
94 office 41 guest account = nobody
82 office 42 # For compatibility with clients.
43 client use spnego = no
44 client ntlmv2 auth = no
81 office 45  
85 office 46 # Samba modules.
47 vfs objects = catia fruit streams_xattr aio_linux
83 office 48 # Better compatibility with OSX.
84 office 49 ea support = yes
85 office 50 fruit:aapl = yes
51 fruit:encoding = native
52 fruit:locking = none
53 fruit:metadata = stream
54 fruit:resource = file
55 aio_linux:aio num events = 256
83 office 56  
85 office 57 ### Tweaks
58 # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072
59 socket options=TCP_NODELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST
81 office 60 use sendfile = true
83 office 61 max open files = 65535
85 office 62 min receivefile size = 131072
63 # Requires aio_linux as last module in vfs_objects
81 office 64 aio read size = 16384
65 aio write size = 16384
85 office 66 write cache size = 262144
83 office 67 read raw = yes
68 write raw = yes
85 office 69 # Close connection on idle time (minutes).
81 office 70 kernel oplocks = yes
83 office 71 server multi channel support = yes
81 office 72  
73 # Logging
85 office 74 # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG
94 office 75 log level = 1
81 office 76  
95 office 77 # Include LDAP configuration.
78 #include = /etc/samba/smb.conf.ldap
79  
81 office 80 # Include local settings.
81 include = /etc/samba/smb.conf.local
82  
83 # Include shares.
84 include = /etc/samba/smb.conf.share