Hello again,
I finally have a better understanding of my Macfusion permissions issues now, and I hope someone can help me diagnose this problem?
1. I managed to obtain an updated patch from the author of
this post for SSHFS 2.4. This patch adds options to force a certain set of permissions for files written to a SSHFS volume. E.g. I tell SSHFS to set all files I write to the volume to 774. Thanks to the help from this list, I was able to compile a statically linked Universal Binary of this patched SSHFS.
2. I tested mounting this remote SSHFS volume from the Terminal (in Mac OS X 10.5 (PPC), 10.6 (Intel i386), and 10.7 (Intel x86_64)!), and with the options "-o remote_dmask=774,remote_fmask=774,defer_permissions" I was able to create, delete, read, edit, and save files/folders from the volume. This is a good start!
3. However, when I moved this patched SSHFS into the Macfusion application,
and renaming it to replace the stock sshfs-static, problems occur. On the Mac OS X 10.5 machine, the volume mounts, but shows it has "zero bytes" free space, and I was unable to upload any files to it! (opening, editing, and saving existing files seemed fine)
4. On the Mac OS X 10.6 machine, I got this error when I try to mount the volume: "Could not mount filesystem: Authentication failed." Looks like this is the part of the log that shows the problem:
(SSHServerFS, [volume name], 2012-07-12 13:28:35) debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/[my user]/.ssh/id_rsa
debug1: Trying private key: /Users/[my user]/.ssh/id_dsa
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: Device not configured
(SSHServerFS, [volume name], 2012-07-12 13:28:36) debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
I don't think this is a Keychan problem because I don't save any credentials on this machine. Using the stock SSHFS that came with Macfusion, nor changing between 32-bit and 64-bit modes, were able to solve the problem.
5. On the Mac OS X 10.7 machine, the volume was mounted successfully, and most operations worked (such as creating, deleting, and modifying most files). However, there are some strange permissions issues. For example, Micro$oft Office 2011 applications like Word or Excel insists on opening documents on the volume as read-only, and complains about no permissions when trying to save to, or overwrite a file. Again using the stock SSHFS that came with Macfusion didn't help.
In summary, mounting a SSHFS volume from the commandline (whether it is the stock SSHFS from Github or the patched one) seems to work fine. But when used with Macfusion, weird problems happen.
I hope this is a more accurate and specific description of my issue. Has anyone else experienced something similar, or might have suggestions for troubleshooting this? Thank you!!!
P.S. Would it help if I try to remove ALL traces of SSHFS and Macfusion from a machine so I can start from scratch? If so, how do I do this cleanly?