87c3ef
From aec3dd00fa76547316fddd07e6ded428d945986c Mon Sep 17 00:00:00 2001
87c3ef
From: Anoop C S <anoopcs@redhat.com>
87c3ef
Date: Fri, 22 Nov 2019 17:36:55 +0530
87c3ef
Subject: [PATCH 413/449] extras/hooks: Remove smb.conf parameter allowing
87c3ef
 guest access
87c3ef
87c3ef
Backport of https://review.gluster.org/23745
87c3ef
87c3ef
Change-Id: I88f494f16153d27ab6e2f2faf4d557e075671b10
87c3ef
BUG: 1775637
87c3ef
Signed-off-by: Anoop C S <anoopcs@redhat.com>
87c3ef
Reviewed-on: https://code.engineering.redhat.com/gerrit/202473
87c3ef
Tested-by: RHGS Build Bot <nigelb@redhat.com>
87c3ef
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
87c3ef
---
87c3ef
 extras/hook-scripts/set/post/S30samba-set.sh     | 1 -
87c3ef
 extras/hook-scripts/start/post/S30samba-start.sh | 1 -
87c3ef
 2 files changed, 2 deletions(-)
87c3ef
87c3ef
diff --git a/extras/hook-scripts/set/post/S30samba-set.sh b/extras/hook-scripts/set/post/S30samba-set.sh
87c3ef
index e73f00f..854f131 100755
87c3ef
--- a/extras/hook-scripts/set/post/S30samba-set.sh
87c3ef
+++ b/extras/hook-scripts/set/post/S30samba-set.sh
87c3ef
@@ -89,7 +89,6 @@ function add_samba_share () {
87c3ef
         STRING+="glusterfs:loglevel = 7\n"
87c3ef
         STRING+="path = /\n"
87c3ef
         STRING+="read only = no\n"
87c3ef
-        STRING+="guest ok = yes\n"
87c3ef
         STRING+="kernel share modes = no\n"
87c3ef
         printf "$STRING"  >> ${CONFIGFILE}
87c3ef
 }
87c3ef
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
87c3ef
index 0d5a5ed..cac0cbf 100755
87c3ef
--- a/extras/hook-scripts/start/post/S30samba-start.sh
87c3ef
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
87c3ef
@@ -88,7 +88,6 @@ function add_samba_share () {
87c3ef
         STRING+="glusterfs:loglevel = 7\n"
87c3ef
         STRING+="path = /\n"
87c3ef
         STRING+="read only = no\n"
87c3ef
-        STRING+="guest ok = yes\n"
87c3ef
         STRING+="kernel share modes = no\n"
87c3ef
         printf "$STRING"  >> "${CONFIGFILE}"
87c3ef
 }
87c3ef
-- 
87c3ef
1.8.3.1
87c3ef