configuration-templates – Blame information for rev 136
?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 ## |
||
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. |
136 | office | 47 | vfs objects = catia fruit streams_xattr |
48 | # AIO / Linux |
||
49 | event:backend = aio |
||
50 | posix:aio = yes |
||
83 | office | 51 | # Better compatibility with OSX. |
84 | office | 52 | ea support = yes |
85 | office | 53 | fruit:aapl = yes |
54 | fruit:encoding = native |
||
55 | fruit:locking = none |
||
56 | fruit:metadata = stream |
||
57 | fruit:resource = file |
||
58 | aio_linux:aio num events = 256 |
||
83 | office | 59 | |
85 | office | 60 | ### Tweaks |
61 | # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072 |
||
62 | socket options=TCP_NODELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST |
||
81 | office | 63 | use sendfile = true |
83 | office | 64 | max open files = 65535 |
85 | office | 65 | min receivefile size = 131072 |
66 | # Requires aio_linux as last module in vfs_objects |
||
81 | office | 67 | aio read size = 16384 |
68 | aio write size = 16384 |
||
85 | office | 69 | write cache size = 262144 |
83 | office | 70 | read raw = yes |
71 | write raw = yes |
||
85 | office | 72 | # Close connection on idle time (minutes). |
81 | office | 73 | kernel oplocks = yes |
83 | office | 74 | server multi channel support = yes |
81 | office | 75 | |
76 | # Logging |
||
85 | office | 77 | # 0 -> LOG_ERR, 1 -> LOG_WARNING, 2 -> LOG_NOTICE, 3 -> LOG_DEBUG |
94 | office | 78 | log level = 1 |
81 | office | 79 | |
95 | office | 80 | # Include LDAP configuration. |
81 | #include = /etc/samba/smb.conf.ldap |
||
82 | |||
81 | office | 83 | # Include local settings. |
84 | include = /etc/samba/smb.conf.local |
||
85 | |||
86 | # Include shares. |
||
87 | include = /etc/samba/smb.conf.share |