Hello

the best way is to mount using UID/GID, and then create the user with
those same UID/GID

http://stackoverflow.com/questions/17966365/vagrant-chicken-and-egg-shared-folder-with-uid-apache-user

Alvaro

On Sun, Jun 14, 2015 at 2:06 PM, Jake Wilson <[email protected]> wrote:
> On my box, I have a provision script setup to automatically install NGINX.
> And the shared sync folder on my box I want to be owned by user nginx and
> group nginx. But this user and group is created automatically by the NGINX
> install process.
>
> The problem is that when provisioning is happening, the nginx:nginx
> user/group doesn't exist yet when Vagrant tries to set the owner and group
> of the sync'ed folders. This is because the provision script happens after
> the sync'ed folders are setup.
>
> How do I get around this problem? Is there a way to setup the sync'ed
> folders later in the provision process?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to