configuration-templates – Diff between revs 83 and 84
?pathlinks?
Rev 83 | Rev 84 | |||
---|---|---|---|---|
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
|
3 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
3 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
|
4 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
4 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
|
5 | ########################################################################### |
5 | ########################################################################### |
|
6 | ## Optimized standalone configuration template for Samba servers. ## |
6 | ## Optimized standalone configuration template for Samba servers. ## |
|
7 | ## ## |
7 | ## ## |
|
8 | ## Ideal for: ## |
8 | ## Ideal for: ## |
|
9 | ## * Virtual machine file sharing ## |
9 | ## * Virtual machine file sharing ## |
|
10 | ## ## |
10 | ## ## |
|
11 | ## Requirements: ## |
11 | ## Requirements: ## |
|
12 | ## * Samba 3.x ## |
12 | ## * Samba 3.x ## |
|
13 | ## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
13 | ## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
|
14 | ## ## |
14 | ## ## |
|
15 | ## File placement layout: ## |
15 | ## File placement layout: ## |
|
16 | ## / ## |
16 | ## / ## |
|
17 | ## `-- etc ## |
17 | ## `-- etc ## |
|
18 | ## `-- samba ## |
18 | ## `-- samba ## |
|
19 | ## |-- smb.conf ## |
19 | ## |-- smb.conf ## |
|
20 | ## |-- smb.conf.local ## |
20 | ## |-- smb.conf.local ## |
|
21 | ## `-- smb.conf.share ## |
21 | ## `-- smb.conf.share ## |
|
22 | ## ## |
22 | ## ## |
|
23 | ## Files Description: ## |
23 | ## Files Description: ## |
|
24 | ## * /etc/samba/smb.conf (this file) ## |
24 | ## * /etc/samba/smb.conf (this file) ## |
|
25 | ## * /etc/samba/smb.conf.local (local server-site settings) ## |
25 | ## * /etc/samba/smb.conf.local (local server-site settings) ## |
|
26 | ## * /etc/samba/smb.conf.share (samba shares go here) ## |
26 | ## * /etc/samba/smb.conf.share (samba shares go here) ## |
|
27 | ## ## |
27 | ## ## |
|
28 | ########################################################################### |
28 | ########################################################################### |
|
29 | |
29 | |
|
30 | [global] |
30 | [global] |
|
31 | bind interfaces only = yes |
31 | bind interfaces only = yes |
|
32 | name resolve order = lmhosts host wins bcast |
32 | name resolve order = lmhosts host wins bcast |
|
33 | |
33 | |
|
34 | # Standalone. |
34 | # Standalone. |
|
35 | preferred master = yes |
35 | preferred master = yes |
|
36 | security = USER |
36 | security = USER |
|
37 | # For compatibility with scripts. |
37 | # For compatibility with scripts. |
|
38 | passdb backend = smbpasswd |
38 | passdb backend = smbpasswd |
|
39 | map to guest = bad user |
39 | map to guest = bad user |
|
40 | # For compatibility with clients. |
40 | # For compatibility with clients. |
|
41 | client use spnego = no |
41 | client use spnego = no |
|
42 | client ntlmv2 auth = no |
42 | client ntlmv2 auth = no |
|
43 | |
43 | |
|
44 | # Better compatibility with OSX. |
44 | # Better compatibility with OSX. |
|
45 | unix extensions = no |
45 | ea support = yes |
|
- | 46 | vfs objects = fruit streams_xattr |
||
46 | |
47 | |
|
47 | # Safe Tweaks |
48 | # Safe Tweaks |
|
48 | socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY IPTOS_LOWDELAY |
49 | socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY IPTOS_LOWDELAY |
|
49 | use sendfile = true |
50 | use sendfile = true |
|
50 | max xmit = 65535 |
51 | max xmit = 65535 |
|
51 | max connections = 65535 |
52 | max connections = 65535 |
|
52 | max open files = 65535 |
53 | max open files = 65535 |
|
53 | min receivefile size = 16384 |
54 | min receivefile size = 16384 |
|
54 | aio read size = 16384 |
55 | aio read size = 16384 |
|
55 | aio write size = 16384 |
56 | aio write size = 16384 |
|
56 | read raw = yes |
57 | read raw = yes |
|
57 | write raw = yes |
58 | write raw = yes |
|
58 | getwd cache = yes |
59 | getwd cache = yes |
|
59 | dead time = 15 |
60 | dead time = 15 |
|
60 | kernel oplocks = yes |
61 | kernel oplocks = yes |
|
61 | server multi channel support = yes |
62 | server multi channel support = yes |
|
62 | |
63 | |
|
63 | # Logging |
64 | # Logging |
|
64 | log file = /var/log/samba/log.%m |
65 | log file = /var/log/samba/log.%m |
|
65 | log level = 2 |
66 | log level = 2 |
|
66 | |
67 | |
|
67 | # Include local settings. |
68 | # Include local settings. |
|
68 | include = /etc/samba/smb.conf.local |
69 | include = /etc/samba/smb.conf.local |
|
69 | |
70 | |
|
70 | # Include shares. |
71 | # Include shares. |
|
71 | include = /etc/samba/smb.conf.share |
72 | include = /etc/samba/smb.conf.share |
|
72 | |
73 | |