remove '-o default_permissions' from smount. Need to add that per specific case and in some cases it screws up write permissions

master
David Kebler 2020-12-01 10:47:17 -08:00
parent 02320e007e
commit 15f24c784f
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# depends on sshfs fuse for ssh # depends on sshfs fuse for ssh
module_load filesystem module_load filesystem # mounted
module_load net-utils # host_reachable
function smount(){ function smount(){
local HOST local HOST
@ -10,9 +11,10 @@ if [[ $(mounted $2) ]]; then
echo "remote $1 already mounted at $2, aborting mount" echo "remote $1 already mounted at $2, aborting mount"
else else
echo "mounting via ssh" echo "mounting via ssh"
echo sshfs "$@" -o default_permissions echo sshfs "$*"
mkdir -p $2 mkdir -p $2
sshfs "$@" -o default_permissions # can add any options after mount point directory like -o default_permissions
sshfs "$@"
fi fi
} }