From 4cfdede74c179cc56de0cfca78168c2a55a76240 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 13 Dec 2021 12:56:11 +0000 Subject: [PATCH] Fix cifs mount options for guest access (#74) * Fix cifs mount options when no username is supplied * Update to use sec=none --- cifs_mount.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cifs_mount.sh b/cifs_mount.sh index 5ad447e..038c520 100644 --- a/cifs_mount.sh +++ b/cifs_mount.sh @@ -199,7 +199,7 @@ fi if [ "$USERNAME" == "" ] then - MOUNT_OPTIONS="guest" + MOUNT_OPTIONS="sec=none" else MOUNT_OPTIONS="username=$USERNAME,password=$PASSWORD" if [ "$DOMAIN" != "" ] @@ -341,4 +341,4 @@ else fi echo "Done!" -exit 0 \ No newline at end of file +exit 0