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