configuration-templates – Diff between revs 26 and 63

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