17

I have an sshfs FUSE filesystem mounted in ~/mountpoint. I tried umount mountpoint and diskutil unmount mountpoint (on a Mac here) and both failed. I used sshfs -o IdentityFile=<key> user@hostname:/home/<user> ~/mountpoint; none of that required sudo.

Why, then, do unmount it do I need sudo privilges?

slhck
  • 223,558
  • 70
  • 607
  • 592
kalaracey
  • 2,319
  • 7
  • 28
  • 38

1 Answers1

18

Because umount only allows root to unmount regular filesystems.

You can, however, unmount any FUSE filesystem (inclusing sshfs) without using sudo:

fusermount -u mountpoint
Jaap Joris Vens
  • 929
  • 10
  • 23
  • 1
    yes, but I have no command `fusermount` installed; I believe it is linux-specific. But thanks - I didn't know umount was sudo-only – kalaracey May 13 '12 at 07:52