Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.