configuration-templates – Rev 96
?pathlinks?
###########################################################################
## 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 4.x ##
## ##
## File placement layout: ##
## / ##
## `-- etc ##
## `-- samba ##
## |-- smb.conf ##
## |-- smb.conf.local ##
## |-- smb.conf.share ##
## `-- smb.conf.ldap ##
## ##
## 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) ##
## * /etc/samba/smb.conf.ldap (optional ldab configuration) ##
## ##
###########################################################################
[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