configuration-templates
/samba/4/standalone/smb.conf |
@@ -0,0 +1,55 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
## rights of fair usage, the disclaimer and warranty conditions. ## |
########################################################################### |
## Optimized standalone configuration template for Samba servers. ## |
## ## |
## Ideal for: ## |
## * Virtual machine file sharing ## |
## ## |
## Requirements: ## |
## * Samba 3.x ## |
## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
## ## |
## File placement layout: ## |
## / ## |
## `-- etc ## |
## `-- samba ## |
## |-- smb.conf ## |
## |-- smb.conf.local ## |
## `-- smb.conf.share ## |
## ## |
## Files Description: ## |
## * /etc/samba/smb.conf (this file) ## |
## * /etc/samba/smb.conf.local (local server-site settings) ## |
## * /etc/samba/smb.conf.share (samba shares go here) ## |
## ## |
########################################################################### |
|
[global] |
bind interfaces only = yes |
name resolve order = lmhosts host wins bcast |
|
# Standalone. |
preferred master = yes |
security = USER |
# For compatibility with scripts. |
passdb backend = smbpasswd |
map to guest = bad user |
|
# Safe Tweaks |
use sendfile = true |
aio read size = 16384 |
aio write size = 16384 |
kernel oplocks = yes |
|
# Logging |
log file = /var/log/samba/log.%m |
log level = 2 |
|
# Include local settings. |
include = /etc/samba/smb.conf.local |
|
# Include shares. |
include = /etc/samba/smb.conf.share |
/samba/4/standalone/smb.conf.local |
@@ -0,0 +1,36 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
## rights of fair usage, the disclaimer and warranty conditions. ## |
########################################################################### |
## Optimized standalone configuration template for Samba servers. ## |
## ## |
## Ideal for: ## |
## * Virtual machine file sharing ## |
## ## |
## Requirements: ## |
## * Samba 3.x ## |
## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
## ## |
## File placement layout: ## |
## / ## |
## `-- etc ## |
## `-- samba ## |
## |-- smb.conf ## |
## |-- smb.conf.local ## |
## `-- smb.conf.share ## |
## ## |
## Files Description: ## |
## * /etc/samba/smb.conf (main configuration file) ## |
## * /etc/samba/smb.conf.local (this file) ## |
## * /etc/samba/smb.conf.share (samba shares go here) ## |
## ## |
########################################################################### |
|
[global] |
workgroup = WORKGROUP |
# Either the server is a wins server... |
# wins support = yes |
# ... or it uses an upstream wins server. |
# wins server = 192.168.0.1 |
interfaces = 192.168.0.0/24 127.0.0.1 |
/samba/4/standalone/smb.conf.share |
@@ -0,0 +1,47 @@ |
########################################################################### |
## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
## rights of fair usage, the disclaimer and warranty conditions. ## |
########################################################################### |
## Optimized standalone configuration template for Samba servers. ## |
## ## |
## Ideal for: ## |
## * Virtual machine file sharing ## |
## ## |
## Requirements: ## |
## * Samba 3.x ## |
## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
## ## |
## File placement layout: ## |
## / ## |
## `-- etc ## |
## `-- samba ## |
## |-- smb.conf ## |
## |-- smb.conf.local ## |
## `-- smb.conf.share ## |
## ## |
## Files Description: ## |
## * /etc/samba/smb.conf (main configuration file) ## |
## * /etc/samba/smb.conf.local (local server-site settings) ## |
## * /etc/samba/smb.conf.share (this file) ## |
## ## |
########################################################################### |
|
[homes] |
comment = Home Directories |
read only = No |
create mask = 0700 |
directory mask = 0700 |
browseable = No |
|
[www] |
comment = Websites |
path = /var/www |
valid users = root www-data |
# Create file under this user - useful for seamlessly copying files. |
force user = www-data |
force group = www-data |
read only = No |
create mask = 0664 |
force create mode = 0664 |
force directory mode = 0755 |