« Return to Thread: rsync problems from Vista installed cygwin, ok on XP
Hey that did it!!! Thanks!!! In cygwin I did an ls -laR and confirmed the directory had d------ privileges. The first attempt to chmod -R 775 failed, then I restarted cygwin with "Run As Administrator" and it worked. The first attempt to rsync then failed because the folder up there on the Linux machine was still set to d------ from the last attempt... so I went in and chmod'd that to 755 (not 775, deliberately different)... then tried the rsync again... hummed along no problems, then after completion I went back to the Linux machine and the test files were all there and the privileges for the folder had been changed from 755 to 775 (drwxrwxr-x)... perfect.Igor Peshansky wrote:> DaveB wrote....[snip]
> Local permissions... haven't used getfacl before but tried it in cygwin
> and got this...
>
> ================================
> daveb@daveb9400 /cygdrive/c/4up
> $ getfacl *
> # file: 20070709 mach refresh issue
> # owner: daveb
> # group: None
> user::---
> group::---
> group:SYSTEM:rwx
> group:Administrators:rwx
> group:Users:r-x
> mask:rwx
> other:---
> default:group:SYSTEM:rwx
> default:group:Administrators:rwx
> default:group:Users:r-x
> default:mask:rwx
>
> # file: somejunk.txt
> # owner: daveb
> # group: None
> user::---
> group::---
> group:SYSTEM:rwx
> group:Administrators:rwx
> group:Users:r-x
> mask:rwx
> other:---
>
> =========================
>
> Vista account is only one on machine, has admin privileges.
> UAC is switched on.
> I did have cygwin, hence rsync running normally in this test, but now that
> you remind me, I also tried it before using "Run As Administrator" on
> cygwin. Made no difference.
> ...[snip]
Ok, here's a WAG. Your problem stems from the fact that the Unix
permissions on that directory really are 0. All of the access information
is stored in separate ACLs, which rsync does not copy. Thus, it sets the
permissions on the remote copy to 0, and, obviously, is unable to write to
that directory afterwards.
You can run "chmod -R 775" on that directory, which should, if my WAG
above is correct, fix your rsync problem.
Igor
P.S. Before you ask, I'm not aware of any way to make rsync copy the ACLs.
« Return to Thread: rsync problems from Vista installed cygwin, ok on XP
| Free embeddable forum powered by Nabble | Forum Help |