configuration-templates – Blame information for rev 93
?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 |
||
93 | office | 36 | security = user |
37 | # Without authentication, shares are not visible. |
||
38 | browseable = no |
||
39 | public = no |
||
40 | guest ok = no |
||
81 | office | 41 | # For compatibility with scripts. |
42 | passdb backend = smbpasswd |
||
93 | office | 43 | map to guest = Bad Password |
82 | office | 44 | # For compatibility with clients. |
45 | client use spnego = no |
||
46 | client ntlmv2 auth = no |
||
81 | office | 47 | |
85 | office | 48 | # Samba modules. |
49 | vfs objects = catia fruit streams_xattr aio_linux |
||
83 | office | 50 | # Better compatibility with OSX. |
84 | office | 51 | ea support = yes |
85 | office | 52 | fruit:aapl = yes |
53 | fruit:encoding = native |
||
54 | fruit:locking = none |
||
55 | fruit:metadata = stream |
||
56 | fruit:resource = file |
||
57 | aio_linux:aio num events = 256 |
||
83 | office | 58 | |
85 | office | 59 | ### Tweaks |
60 | # Don't tweak Linux buffers: SO_RCVBUF=131072 SO_SNDBUF=131072 |
||
61 | socket options=TCP_NODELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST |
||
81 | office | 62 | use sendfile = true |
83 | office | 63 | max open files = 65535 |
85 | office | 64 | min receivefile size = 131072 |
65 | # Requires aio_linux as last module in vfs_objects |
||
81 | office | 66 | aio read size = 16384 |
67 | aio write size = 16384 |
||
85 | office | 68 | write cache size = 262144 |
83 | office | 69 | read raw = yes |
70 | write raw = yes |
||
85 | office | 71 | # Close connection on idle time (minutes). |
72 | # deadtime = 15 |
||
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 |
78 | logging = syslog@3 |
||
81 | office | 79 | |
80 | # Include local settings. |
||
81 | include = /etc/samba/smb.conf.local |
||
82 | |||
83 | # Include shares. |
||
84 | include = /etc/samba/smb.conf.share |