Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com May 24 '11 at 10:17

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.