Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-11-05 Thread Alvaro Miranda Aguilera
I did add a PR for the documentation to add this example since is quite handy https://github.com/mitchellh/vagrant/pull/4788 Alvaro. On Thu, Nov 6, 2014 at 8:54 AM, Alvaro Miranda Aguilera wrote: > > On Thu, Nov 6, 2014 at 1:10 AM, San wrote: > >> *config2.vm.synced_folder "./scripts", syncDi

Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-11-05 Thread Alvaro Miranda Aguilera
On Thu, Nov 6, 2014 at 1:10 AM, San wrote: > *config2.vm.synced_folder "./scripts", syncDir+"/scripts", type: "rsync", > rsync__exclude: "*.json", * > * rsync__args: > ['--verbose', '--rsync-path="sudo rsync"']* Worked for me. 1. you hav

Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-11-05 Thread San
I think I already tried that before. But anyway, it still doesn't work. So, this is in my Vagrant file now: *config2.vm.synced_folder "./scripts", syncDir+"/scripts", type: "rsync", rsync__exclude: "*.json", * * rsync__args: ['--verbose'

Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-10-31 Thread Alvaro Miranda Aguilera
well, if you got a working command line why not use it? https://docs.vagrantup.com/v2/synced-folders/rsync.html note is __ no _ between rsync__args (array of strings) - A list of arguments to supply to rsync. By default this is ["--verbose", "--archive", "--delete", "-z"]. config.vm.synced_

Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-10-30 Thread San
Thanks for the heads up Alvaro! The user that is used to do the remote login for rsync, got full sudo access and there was a company-wide decision we took to put some stuff under the /root location for some security reason. I can do the easily from the command line using a command, equivalent to

Re: [vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-10-30 Thread Alvaro Miranda Aguilera
hello, the user that does the ssh is what does the copy.. HOST -> guest user by ssh, say vagrant -> file (owner vagrant) If you can explain a bit more the requirement, I can give you some suggestions, If root user is 100% required, I probably will use a shell provider after the sync, to move an

[vagrant-up] possible to run rsync/synced_folder with root privilages?

2014-10-30 Thread San
I need to be able to sync some stuff in /root directory: Is there a way I can rsync as root-user or with sudo. It's possible with rsync command from the CLI, using --rsync-path="sudo rsync" option. Is it anything similar in Vagrant available? My attempt of using owner: "root", group: "root" in