Closed e0ipso closed 10 years ago
Yeah, I thought this was something I'd addressed, but I've had the same problems - but, I can change the group with sudo chgrp.
Either way, I want this to be pain-free, so I'm going to take a look.
Well, this turned out to be more complex than I thought!
At first, I attempted to use rsync__args with --no-group to preserve the default group ownership. But, it turns out that Vagrant does two things:
Luckily, there's undocumented 'owner' and 'group' flags that we can put directly in the synced_folder config.
Turns out the option is documented, but not clearly. I filed an upstream docs PR over at https://github.com/mitchellh/vagrant/pull/4112
@mateu-aguilo-bosch I just pushed up a commit setting group to www-data; feel free to reopen this if it doesn't work for you.
I'm seeing that the www is not owned by
vagrant:www-data
but byvagrant:vagrant
and I can't change the group of those.That forces me to give write permissions to everyone if I want Apache to write in some directory.