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 running an rsync command, copying my files from a server to my Windows machine like:

rsync -rt --partial-dir=".rsync" --del rsync://server/a/ a/

Whenever this command creates a directory, it tends to create a directory with crazy ACLs/permissions. For me, it tends to create ten <not inherited> entries, with one deny entry for the user who ran the rsync command, and the others not making much sense, either. This even happens using the --chmod=ugo=rwX option, which a similar thread suggested.

What can I do to prevent rsync from trying to set permissions at all (and just leave the permissions to the ACL inheritance in Windows)?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Mount the directory in question with the noacl option, as described in the manual.

(And if you want to know why the mapping of Unix permissions to Windows ACLs is not straightforward, see here.)

share|improve this answer
    
noacl does prevent the crazy permissions, but since it fakes permissions with the "readonly" bit, I get a bunch of weird partial read-only directories. This is an improvement. –  palswim Apr 14 '11 at 19:21
    
How about rsync's --no-perms option? –  ak2 Apr 15 '11 at 10:04
1  
Actually, it looks like I get that "partial readonly" symptom on any directory (whether rsync created it or not). It appears Windows is saying just that directories have no readonly property. –  palswim Apr 15 '11 at 17:47
    
Thanks for reporting back with that explanation. –  ak2 Apr 15 '11 at 19:22
1  
ak2's answer was very helpful to be, but it took quite a bit of googling to find how to setup the noacl in /etc/fstab properly. I found this link quite helpful. Using noacl fixed my rsync problems - thanks. –  miking Dec 7 '11 at 23:11

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.