Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission problems under Windows (cygwin rsync) #8

Open
cbeier opened this issue Jul 12, 2015 · 0 comments
Open

Permission problems under Windows (cygwin rsync) #8

cbeier opened this issue Jul 12, 2015 · 0 comments

Comments

@cbeier
Copy link

cbeier commented Jul 12, 2015

With some shared folders I have some problems to rsync back the files to the host machine (Windows 8.1). I use rsync with cygwin, version 3.1.1.

$ vagrant rsync-back
==> default: Rsyncing folder: /codebase/ => /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
==> default:   - Exclude: [".vagrant/", ".git/"]
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
Guest path: /codebase/
Command: rsync --verbose --archive --delete -z --chmod=ugo=rwX -e ssh -p 2222 -o StrictHostKeyChecking=no -i 'C:/Users/Christian/Workspace/Codebase/vagrant/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ --exclude .git/ vagrant@127.0.0.1:/codebase/ /cygdrive/c/Users/Christian/Workspace/Codebase/Codebase
Error: rsync: failed to set permissions on "/cygdrive/c/Users/Christian/Workspace/Codebase/Codebase/Projects": Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [generator=3.1.1]

My Vagrantfile:

  config.vm.synced_folder "../Codebase", "/codebase", :type => "rsync", :rsync__args => ['--verbose', '--archive', '--delete', '-z', '--copy-links', '--no-perms'], :rsync__exclude => [".git/"]

I have also tried to use the noacl flag in the fstab file from cygwin (http://i-cat.blogspot.de/2010/01/cygwinnontsec-in-cygwin-17-speak.html):

none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant