Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
OSXfuse's SSHFS ignores remote group permissions ? #1
I'm mounting it together with macfusion. Unless I own the remote files via the remote user, I cannot access the files via standard remote UNIX permissions. For example, I have access to this directory on the remote server via osxfuse:
$ ls -alh drwxrws--- 11 roman group11 4.0K Sep 25 12:00 test_dir_server1 $id roman uid=42314 gid=(...),40205(group11)
But not this one, which I don't own by user, only by group. I'm able to access the files when logged in via regular interactive ssh though:
$ ls -alh drwxrws---. 10 not.roman group12 4,0K 24 sep 20.59 test_dir_server2 $id roman uid=14215 gid=(...),10023(group12)
Is there any flag I can use to correct this ? I've also observed that sshfs is not on my path when I try to invoque it locally after installing OSXFUSE with macfuse backwards compatibility option checked.
Thanks for the fork guys, good work !
Macfusion comes with its own custom SSHFS binary, that seems to ignore the user's gid. It resides in Macfusion's application bundle. That's why sshfs is not in your path.
It took some time, but earlier today I uploaded an official OSXFUSE SSHFS 2.3.0 package containing a universal
To make Macfusion use OSXFUSE's SSHFS run the following commands in Terminal (assuming Macfusion is in your Applications folder):
To revert the changes run:
Please re-open the issue, if this does not work for you.
Hello @bfleischer, thanks for your feedback !
Unfortunately, after installing the pkg and running the commands, it still does not work, permissions are wrong :-/
ls -alh /Volumes/remote_mount/folder/ ls: : Permission denied
On the other hand, doing a regular ssh machine ls -alh folder/ works without problems.
Here's some information on the sshfs I'm using from today:
:Resources roman$ sshfs -V SSHFS version 2.3 (OSXFUSE SSHFS 2.3.0) OSXFUSE library version: FUSE 2.7.3 / OSXFUSE 2.3.4 no mount point :Resources roman$ which sshfs /usr/local/bin/sshfs :Resources roman$ ls -lah /usr/local/bin/sshfs -rwxr-xr-x 1 root wheel 5,5M 22 Jan 12:39 /usr/local/bin/sshfs
I took a closer look at your first post and am now able to reproduce the issue. There is an important difference between regular SSH and SSHFS:
SSHFS tries to be smart and matches your remote user's uid/gid with your local user's uid/gid. This suffices in most cases but in your case your remote user just belongs to
Here is how to fix this: You need to call sshfs with the option
If you call sshfs from command line just add
Yeah, that did the trick, thanks ! :D
I've to define that -o flag for each mount point... Even if it's a minor issue, I would expect it to be a global setting instead (or as well).
On top of that, would it make sense to have it as default setting for macfusion ? I think it's reasonable to have it as per the principle of least surprise (http://en.wikipedia.org/wiki/Principle_of_least_astonishment).
Thanks for the hints... I'll upgrade as well, thanks for telling !