summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-01-12 23:24:56 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-01-12 23:24:56 +0100
commit23b9b6bc3d6631fef4703716ca5e8034a4d66cb3 (patch)
tree11afa43b0deab8787a87e6b27a243a3c5d8fa115 /roles/elevate/media/templates
parentadmin-user pasword is now mandatory (needed for sudo) (diff)
ele-media: added samba
Diffstat (limited to 'roles/elevate/media/templates')
-rw-r--r--roles/elevate/media/templates/smb.conf.j248
1 files changed, 48 insertions, 0 deletions
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