configuration-templates – Blame information for rev 94
?pathlinks?
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 ## |
||
20 | ## `-- smb.conf.share ## |
||
21 | ## ## |
||
22 | ## Files Description: ## |
||
23 | ## * /etc/samba/smb.conf (this file) ## |
||
24 | ## * /etc/samba/smb.conf.local (local server-site settings) ## |
||
25 | ## * /etc/samba/smb.conf.share (samba shares go here) ## |
||
26 | ## ## |
||
27 | ########################################################################### |
||
28 | |||
29 | [global] |
||
30 | bind interfaces only = yes |
||
31 | name resolve order = lmhosts host wins bcast |
||
32 | |||
33 | # Standalone. |
||
34 | preferred master = yes |
||
93 | office | 35 | security = user |
94 | office | 36 | # Without authentication, shares are not visible |
93 | office | 37 | browseable = no |
38 | public = no |
||
81 | office | 39 | # For compatibility with scripts. |
40 | passdb backend = smbpasswd |
||
93 | office | 41 | map to guest = Bad Password |
94 | office | 42 | guest account = nobody |
82 | office | 43 | # For compatibility with clients. |
44 | client use spnego = no |
||
45 | client ntlmv2 auth = no |
||
81 | office | 46 | |
85 | office | 47 | # Samba modules. |
48 | vfs objects = catia fruit streams_xattr aio_linux |
||
83 | office | 49 | # Better compatibility with OSX. |
84 | office | 50 | ea support = yes |
85 | office | 51 | fruit:aapl = yes |
52 | fruit:encoding = native |
||
53 | fruit:locking = none |
||
54 | fruit:metadata = stream |
||
55 | fruit:resource = file |
||
56 | aio_linux:aio num events = 256 |
||
83 | office | 57 | |
85 | office | 58 | ### Tweaks |
59 | # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072 |
||
60 | socket options=TCP_NODELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST |
||
81 | office | 61 | use sendfile = true |
83 | office | 62 | max open files = 65535 |
85 | office | 63 | min receivefile size = 131072 |
64 | # Requires aio_linux as last module in vfs_objects |
||
81 | office | 65 | aio read size = 16384 |
66 | aio write size = 16384 |
||
85 | office | 67 | write cache size = 262144 |
83 | office | 68 | read raw = yes |
69 | write raw = yes |
||
85 | office | 70 | # Close connection on idle time (minutes). |
81 | office | 71 | kernel oplocks = yes |
83 | office | 72 | server multi channel support = yes |
81 | office | 73 | |
74 | # Logging |
||
85 | office | 75 | # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG |
94 | office | 76 | log level = 1 |
81 | office | 77 | |
78 | # Include local settings. |
||
79 | include = /etc/samba/smb.conf.local |
||
80 | |||
81 | # Include shares. |
||
82 | include = /etc/samba/smb.conf.share |