Automounting via SSHFS fails with error "Operation Not Permitted"

743 views
Skip to first unread message

Jacob Cross

unread,
Mar 7, 2017, 9:26:02 PM3/7/17
to OSXFUSE
Hi all,

I'm trying to automount a share from my FreeNAS system using sshfs.  I am on El Capitan 10.11.6 with the latest osxfuse and sshfs downloads.

Running this command from Terminal works perfectly:
sshfs user@server:/mnt/main_pool/Media    /mnt/nas -p 22 -oreconnect -oauto_cache -ofollow_symlinks -oallow_other -ouid=501 -ogid=20 -ovolname="Media"

However, when I translate that to an automount entry, the mount fails.  Here's my automount file, called auto_nas:
Media -fstype=sshfs,port=22,reconnect,auto_cache,uid=501,gid=20,follow_symlinks,allow_other,IdentityFile=/path/to/private_key,volname="Media"     user@server:/mnt/main_pool/Media

When automount runs (either automatically or via sudo automount -vc) , the mount does not appear, and I see the following message in the console:
automountd[1476]: mount of /mnt/nas/Media failed: Operation not permitted

I've done a bit of Googling but haven't been able to determine what exactly is failing and why.  It's especially vexing since the sshfs command works great but what I think should be the equivalent automount entry fails.

Any ideas out there?

Thanks!

Sam Moffatt

unread,
Mar 13, 2017, 2:18:56 AM3/13/17
to osxfus...@googlegroups.com
I don’t have an answer for you but have you tried this post that seems to have a similar problem and someone posted a solution?

--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jacob Cross

unread,
Mar 13, 2017, 8:43:56 PM3/13/17
to OSXFUSE
Thank you Sam. I had used parts of that post but at your recommendation I took a closer look.

I'm unable to complete this step (which is meant to be incorporated into a launch service):

/bin/bash -c "/Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs; /usr/sbin/sysctl -w osxfuse.tunables.allow_other=1"

I don't have a file /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs on my system.  The closest I have is /Library/Filesystems/osxfuse.fs/Contents/Resources/load_osxfuse.

So, I tried the commands with that alternative path, but receive the error sysctl: unknown oid 'osxfuse.tunables.allow_other'.

I'm able to run this command successfully (which includes -oallow_other):


sshfs user@server:/mnt/main_pool/Media    /mnt/nas -p 22 -oreconnect -oauto_cache -ofollow_symlinks -oallow_other -ouid=501 -ogid=20 -ovolname="Media"


So perhaps allow_other is already enabled?  Not sure how to proceed.

Thanks again for your help.
Jake

To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages