From b5818e9b4fdcb03ba4feb011673333bbeb71a9af Mon Sep 17 00:00:00 2001
From: Stephane Armanet <stephanearmanet@esss.lu.se>
Date: Thu, 2 May 2019 08:15:02 +0200
Subject: [PATCH] update smb config for PSS

---
 tasks/custom_pss.yml      | 4 ++--
 templates/smb-pss.conf.j2 | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tasks/custom_pss.yml b/tasks/custom_pss.yml
index bd390b2..45f3c52 100644
--- a/tasks/custom_pss.yml
+++ b/tasks/custom_pss.yml
@@ -2,8 +2,8 @@
 - name: add a software folder
   file:
     path: /softwares
-    owner: root
-    group: root
+    owner: csi
+    group: csi
     mode: 0755
     state: directory
 
diff --git a/templates/smb-pss.conf.j2 b/templates/smb-pss.conf.j2
index 6e437fa..3424b00 100644
--- a/templates/smb-pss.conf.j2
+++ b/templates/smb-pss.conf.j2
@@ -1,3 +1,6 @@
-[ software ] 
+[softwares] 
   path = /softwares
   read only = yes
+  force user = csi
+  valid users =
+ 
-- 
GitLab