Dropbox changes file permission

5

I'm using Dropbox to synchronize files between my MacBook and my iMac. My problem is, that Dropbox changes the file permission during synchronization from 0755 to 0644 and vice versa. And I'm wondering why.

I'm using Dropbox also to synchronize some git repositories and this gets anoying, because git always says, that the files permissions have changed.

So my question: Is there a way to prevent Dropbox from synchronizing the file permissions? Or any other ideas?

23tux

Posted 2011-05-24T08:48:11.920

Reputation: 213

Answers

5

Dropbox is a "user-friendly" service that will do things automatically for you, which may not always be what you want. There is nothing to do about it until they implement permission retention (translation) between the different operating systems which they support.

When you save something to dropbox from a windows box, the permissions will be 755, but the default permissions on linux are 644. OSX probably defaults to 755 for folders and 644 for files too. The point being it's not trivial to make everything "work properly" independent of the OS being used, even if it's between the same OS. The back-end still has to be "neutral" in case of Dropbox.

When git repos are concerned, you're doing it wrong. They already have "synchronization" because it's a version control system. As long as you have full access to the different boxes you sync between, you're better off synchronizing through ssh. That is, using push and pull directly.

Ярослав Рахматуллин

Posted 2011-05-24T08:48:11.920

Reputation: 9 076