configuration-templates – Blame information for rev 63
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
26 | 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: ## |
||
12 | ## * Samba 3.x ## |
||
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 | dns proxy = yes |
||
33 | name resolve order = lmhosts host wins bcast |
||
34 | |||
35 | # Standalone. |
||
36 | local master = yes |
||
37 | preferred master = yes |
||
38 | security = user |
||
39 | usershare allow guests = no |
||
40 | # For compatibility with scripts. |
||
41 | passdb backend = smbpasswd |
||
42 | encrypt passwords = true |
||
43 | map to guest = bad user |
||
44 | |||
45 | # For password synchronization: |
||
46 | # Debian: |
||
47 | # 1.) Install libpam-smbpass |
||
48 | # 2.) cp /usr/share/doc/libpam-smbpass/examples/password-sync to /etc/pam.d/ |
||
49 | obey pam restrictions = yes |
||
50 | unix password sync = yes |
||
51 | pam password change = yes |
||
52 | passwd program = /usr/bin/passwd %u |
||
53 | passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . |
||
54 | |||
55 | # Allow only NTMLv2 Auth for Compatibility with Windows 7+ |
||
56 | ntlm auth = no |
||
57 | lanman auth = no |
||
58 | |||
59 | # Better compatibility with OSX. |
||
60 | unix extensions = no |
||
61 | |||
62 | # Safe Tweaks |
||
63 | socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY IPTOS_LOWDELAY |
||
64 | use sendfile = true |
||
65 | max xmit = 65535 |
||
66 | max connections = 65535 |
||
67 | max open files = 65535 |
||
68 | min receivefile size = 16384 |
||
69 | aio read size = 16384 |
||
70 | aio write size = 16384 |
||
71 | read raw = yes |
||
72 | write raw = yes |
||
73 | getwd cache = yes |
||
74 | dead time = 15 |
||
75 | kernel oplocks = yes |
||
63 | office | 76 | server multi channel support = yes |
26 | office | 77 | |
78 | # Logging |
||
79 | log file = /var/log/samba4/log.%m |
||
80 | max log size = 1000 |
||
81 | syslog = 0 |
||
82 | |||
83 | # Include local settings. |
||
84 | include = /etc/samba/smb.conf.local |
||
85 | |||
86 | # Include shares. |
||
87 | include = /etc/samba/smb.conf.share |