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