OSXFuse resets file permissions

147 views
Skip to first unread message
Message has been deleted

aspa...@gmail.com

unread,
Feb 6, 2015, 9:13:25 PM2/6/15
to osxfus...@googlegroups.com
Hello all,

I log into a linux (Debian) server to work on files remotely from a mac running 10.9.5 using sshfs. I can login, create and edit files. The trouble comes when I am back in the office when every file I edited remotely through OSXFuse has had the permissions changed from 770 to 744. I have acls set on this shared directory and these are completely removed when editing files through OSXFuse. I've tried connecting with the following flags:

1. defer_permissions
2. extended_security
3. no options (how I found the bug)

Any suggestions?

Thanks in advance.

Adam

Sam Moffatt

unread,
Feb 7, 2015, 11:28:20 AM2/7/15
to osxfus...@googlegroups.com
What happens if you SCP/SFTP a local file up to the server? Does it behave any differently?

--
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-grou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Spannaus

unread,
Feb 7, 2015, 12:51:58 PM2/7/15
to osxfus...@googlegroups.com
Exactly the same thing. Permissions are 744.

Adam

Sam Moffatt

unread,
Feb 7, 2015, 3:46:39 PM2/7/15
to osxfus...@googlegroups.com
Sounds like the SSH server is wiping out the permissions on the other end then. Not much sshfs can do on the other end if that is the case. I suspect behind the scenes the entire file is replaced by the SSH server.

Cheers,

Sam

--
Sam Moffatt

Note: I'm not at my desk, responses may be delayed. Apologies for the typos, smartphones aren't all that smart. 

Michele Berg

unread,
May 22, 2015, 1:00:37 PM5/22/15
to osxfus...@googlegroups.com
I'm posting this not so much for Adam, but because I experienced a sort of similar issue and could not find this information anywhere.  The difference is, when I edit a file via ssh, my permissions do not get altered; they were only getting altered when I saved a file over sshfs.  I finally figured out the problem through lots of experimentation.  

My sshfs mount point would chmod files to 777 every time I saved, until I changed my connection command to the following:

sshfs -o kill_on_unmount,defer_permissions,extended_security

Note the lack of umask in the option setting.  Despite the fact that you're supposed to be able to use a umask option, when I had a umask option specified, my mount point would chmod files to 777 every time, no matter what that umask option was set to, no matter what my remote umask was set to, and no matter what my local umask was set to.  Super irritating.  As soon as I removed the umask option from the sshfs command and added defer_permissions instead, my umask settings were respected.  If it wasn't for the dearth of information about this problem on the web, I'd think there was a bug with the umask option.  Anyway, I hope this helps someone who has run into the same problem I had.

Michele
Reply all
Reply to author
Forward
0 new messages