Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why is it that whenever I Scp or Rsync files from my Windows machine using cygwin to my Ubuntu server. The copied files will all have no permissions. Rsync doesn't even work because it cannot copy files into the folders which don't have the +x permission.

How do I fix this?

share|improve this question

It sounds like you need to set the default mask for your login on the Ubuntu side. This determins the default permissions for new files or folders created by any process running as a certain user. You can find what this value is by loging in on a shell and running umask. For example a normal system will probably say 022, which means files get created with permissions of 644.

You could also try adding a -p (or --perms) to your rsync command to force rsync to set it's own permissions insetad of using the defaults.

share|improve this answer
They are standard on both machines. – verhogen Mar 2 '11 at 4:34

Your Answer


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.