I can mount an SSHFS like this:
sshfs -o idmap=user SSH_HOSTNAME:/ ~/mountpoint
Now it's nicely displayed in Nautilus like a removable device with an eject button. On clicking that button though, I get a permission error:
Unable to unmount “foo”
umount: /home/bytecommander/mountpoint: Permission denied
Same if I directly run
I know I can unmount it using
fusermount -u ~/mountpoint or I could use
sudo umount ~/mountpoint, but I want to get it working in Nautilus (without elevated privileges), which seems to be using
How can I achieve this?
PS: I have read somewhere that I should add my user to the
fuse group, but there is no such group on my 16.04 system and the mounting works anyway, so I don't think it's needed.