0

As the title suggests, I was wondering what happens to via sshfs mounted folders if they are mapped to a subfolder of /tmp, e.g., /tmp/data. Are they simply unmounted or is the data removed recursively from the remote server as well?

  • (1) sshfs is FUSE. Do you mount as root? Or do you use allow_other or allow_root as non-root? (see the beginning of this answer). (2) Is the mount persistent? (does it survive reboot?). (3) Is your /tmp tmpfs? (it may or may not be). (4) What distro are you using? (handling /tmp was distro-dependent in 2012 and I suspect it still is (because)). (5) If you suspect mounting in /tmp may destroy your data, simply don't mount in /tmp. – Kamil Maciorowski Dec 20 '21 at 16:21
  • Hi Thank you for your commant. I am no root user on the machine, so sshfs is executed in user-mode. the mount does not have to survive reboot (it is not part of /etc/fstab). /tmp is part of a hard drive. The distro is Ubuntu 20.04. – Roofkiller Dec 21 '21 at 11:36
  • Please [edit] the question and add this information to the question body. – Kamil Maciorowski Dec 21 '21 at 11:54

0 Answers0