From 15f24c784f3dfba39e10f8df1fc0ac5e885108f6 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Tue, 1 Dec 2020 10:47:17 -0800 Subject: [PATCH] remove '-o default_permissions' from smount. Need to add that per specific case and in some cases it screws up write permissions --- all/modules/sshfs/sshfs.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/all/modules/sshfs/sshfs.sh b/all/modules/sshfs/sshfs.sh index 2633b9e..fe731cb 100755 --- a/all/modules/sshfs/sshfs.sh +++ b/all/modules/sshfs/sshfs.sh @@ -1,6 +1,7 @@ #!/bin/bash # depends on sshfs fuse for ssh -module_load filesystem +module_load filesystem # mounted +module_load net-utils # host_reachable function smount(){ local HOST @@ -10,9 +11,10 @@ if [[ $(mounted $2) ]]; then echo "remote $1 already mounted at $2, aborting mount" else echo "mounting via ssh" - echo sshfs "$@" -o default_permissions + echo sshfs "$*" mkdir -p $2 - sshfs "$@" -o default_permissions + # can add any options after mount point directory like -o default_permissions + sshfs "$@" fi }