Quantcast
Channel: rsync from Linux to Windows 7 creates files that I do not have permission to access - Stack Overflow
Viewing all articles
Browse latest Browse all 3

rsync from Linux to Windows 7 creates files that I do not have permission to access

$
0
0

I'm using rsync under cygwin to synchronize my music and pictures folders across two machines. I have full control over both of these folders on the Windows machine, and the permissions on the Linux machine are generally -rw-------, owned by me. When I use, for example, rsync -rvu --delete rsync://fraxtil@linuxmachine:/music/ /cygdrive/d/Music/, it creates the files and folders in D:\Music\, but I don't have permission to access them, and as a result rsync fails to recurse into newly created directories.

I've tried adding --chmod=a+rwx,g+rwx,o+rwx to the command, adding noacl to cygwin's fstab entry for /cygdrive/, and removing read only = yes from Linux's rsyncd.conf, but none of these solved the issue.

My rsyncd.conf:

log file = /var/log/rsync.logtimeout = 300[music]comment = Musicpath = /home/fraxtil/music#read only = yeslist = yesuid = fraxtilgid = fraxtilauth users = fraxtilsecrets file = /etc/rsyncd.secrets[pictures](mostly the same as above)

cygwin's /etc/fstab:

none /cygdrive cygdrive noacl,binary,posix=0,user 0 0

I've noticed that when I browse D:\ from bash under cygwin, most of the files have mode 0200 or 0000. This might be related to my problem. However, the newly created files, oddly enough, have mode 0270, which is baffling because those are the ones I can't access, yet they have more permissions.

Any ideas?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images