-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Rsync fails on Windows with permission denied #3256
Comments
When playing around with the rsync implementation I also experienced this error but I got it working somehow. I believe the You could try it: |
I have added |
Hm, so is the solution here for Vagrant to automatically do this on Windows hosts, you think? |
I'm using the latest cygwin x64 binaries of rsync and ssh and I can verify the same issue as @ccapndave . The solution for me was to add @mitchellh It makes sense to make this the default for Windows. Currently you can override the default arguments if you needed to adjust the permissions to your own needs. +1 for default Windows behavior. |
Done. Fixed |
I just encountered this - Fresh Win7 (with cygwin for rsync). Both showed the --chmod=ug=rwX,o=rxX addition to the rsync command but kept the permission denied error. |
It seems that this is because rsync on Windows is trying to copy NTFS file permissions into the virtual machine, ending up with no permissions at all. Its explained further in http://stackoverflow.com/questions/5798807/rsync-permission-denied-created-directories-have-no-permissions
As a temporary workaround I have added:
"--chmod=ugo=rwX",
into
<Vagrant>\embedded\gems\gems\vagrant-1.5.1\plugins\synced_folders\rsync\helper.rb
just after the line saying"-e", rsh,
, but obviously this isn't a permanent solution.The full error is given below:
The text was updated successfully, but these errors were encountered: