Bug 211867

Summary: sshfs dosn't work in /etc/fstab
Product: Base System Reporter: ~OuT~ <out>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Many People CC: nchevsky, out
Priority: ---    
Version: 10.3-RELEASE   
Hardware: Any   
OS: Any   

Description ~OuT~ 2016-08-15 11:49:41 UTC
I can mount /tmp/test manually with it:
--
sshfs root@10.0.6.6:/tmp/test /tmp/test
--

The relevant line I'm using in fstab goes like this:
--
root@10.0.6.6:/tmp/test /tmp/test fusefs.sshfs ro 0 0
--

but I am getting this:
--
mount: root@10.0.6.6:/tmp/test: Operation not supported by device
--

I get the same if I replace fusefs.sshfs with fuse and add sshfs# to the beginning of the line.
Comment 1 Tobias Kortkamp freebsd_committer 2021-08-24 08:15:23 UTC
It should go something like

root@10.0.6.6:/tmp/test /tmp/test fusefs ro,mountprog=/usr/local/bin/sshfs,allow_other,late 0 0
Comment 2 Nick Chevsky 2021-08-24 16:05:14 UTC
Thank you, Tobias; the `mountprog' option did the trick.

While sshfs(1)'s manual page doesn't mention the need for this (and in fact incorrectly claims that mounting from fstab(5) is as simple as specifying `sshfs' as the file system type), that's a sysutils/fusefs-sshfs problem, so this base system bug can be closed.