However, I can't seem to do anything with the permissions in the destination directory of the guest with rsync. (Well I can change ownership from vagrant to root by doing "rsync__chown: false", but I can't do anything else.)
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
hello
have you seen the end of this page?
If required to copy to a destination where vagrant user doesn't have
permissions, use "--rsync-path='sudo rsync'" to run rsync with sudo on
the guest
Can you try with that?
rsync otherwise will run as vagrant, and that permission issue looks
as non-root user problem.
if that doesnt work. rsync will be run before the provision scripts,
so you could use a shell script to fix permissions. but i think the
sudo rsync should do the trick
$ vagrant ssh -- ls -al /var/www/vmhost/apps/hudexchange/cfml/deployment_root/wwwroot
total 280
drwxr-xr-x 23 vagrant vagrant 4096 Oct 7 16:49 .
drwxr-xr-x 15 vagrant vagrant 4096 Oct 6 17:58 ..
-rwxr-xr-x 1 vagrant vagrant 11455 Aug 6 03:42 404.htm
Does anyone spot a problem with my Vagrantfile?
I also upgraded to rsync 3.1.1 on the guest, just in case, but no difference in the end result.
One more thing: The docs are confusing, because the rsync__rsync_path option is mentioned, but the example goes on to use a "--rsync-path='sudo rsync'" rsync__args member. I'm not sure which way to go.