From 23b9b6bc3d6631fef4703716ca5e8034a4d66cb3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Jan 2019 23:24:56 +0100 Subject: ele-media: added samba --- roles/elevate/media/templates/smb.conf.j2 | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 roles/elevate/media/templates/smb.conf.j2 (limited to 'roles/elevate/media/templates/smb.conf.j2') diff --git a/roles/elevate/media/templates/smb.conf.j2 b/roles/elevate/media/templates/smb.conf.j2 new file mode 100644 index 00000000..e33aed7e --- /dev/null +++ b/roles/elevate/media/templates/smb.conf.j2 @@ -0,0 +1,48 @@ +#======================= Global Settings ======================= + +[global] + workgroup = elevate + server string = %h - Elevate Fesitval Fileserver + wins support = no + dns proxy = no + + load printers = no + printcap name = /dev/null + disable spoolss = yes + +#### Networking ### +# socket options = SO_KEEPALIVE IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192 + socket options = TCP_NODELAY + +#### Debugging/Accounting #### + log file = /var/log/samba/log.%m + max log size = 1000 + syslog = 0 + panic action = /usr/share/samba/panic-action %d + +####### Authentication ####### + security = user + server role = standalone server + map to guest = bad user + guest account = share + + +#======================= Share Definitions ======================= + +[share] + comment = Shared Space + path = /srv/smbdata/share + browseable = yes + read only = no + guest ok = yes + create mask = 0664 + force create mode = 0664 + directory mask = 2775 + force directory mode = 2775 + +[nextcloud] + comment = Read-Only Access to Nextcloud Files + path = /srv/smbdata/nextcloud + browseable = yes + read only = yes + guest ok = yes -- cgit v1.2.3