bispawel / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

ENHANCEMENT: State current uid and gid at mount-time to enable save functionality #259

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect to any ssh server
2. Open a text file in an editor (ie. TextMate)
3. Make a change
4. Choose "Save" or hit Command-S

What is the expected output?
– I would expect my file to be saved to the SSH server

What do you see instead?
– The OS asks me to authenticate. When I do, nothing happens; the file is
not saved to the SSH server.

What version of the product are you using? On what operating system?
– 0.3.0 on Mac OS X 10.4.10

FIX:

Add the following parameter when you invoke sshfs:

-o uid={current_UID},gid={current_GID}

ie:

-o uid=502,gid=502

So… a full invocation might look like this:

/Applications/sshfs.app/Contents/Resources/sshfs-static
username@my-ssh-server.com:/ -ovolname=my-ssh-server.com -oping_diskarb
-oreconnect -oNumberOfPasswordPrompts=1 -o uid=502,gid=502
/Volumes/my-ssh-server.com

Original issue reported on code.google.com by stevelus...@gmail.com on 28 Aug 2007 at 7:13

GoogleCodeExporter commented 8 years ago
1. sshfs.app is *unsupported*. Of the time I spend on MacFUSE, almost all of it 
goes to MacFUSE Core. See 
sticky thread here:
http://groups.google.com/group/macfuse-devel/browse_thread/thread/5dbb1af9eb4b3e
06

2. In general, sshfs-static should detect the remote uid and do the uid mapping 
automatically. In some 
situations,  it may  not be able to stat the remote home directory to determine 
the remote uid.

3. If you do run into such a case, you can manually run the command line 
program with the right parameters, 
as you stated.

Original comment by si...@gmail.com on 28 Aug 2007 at 8:17