Hello, You have a chicken egg there.
You can override the user to be used in Vagrantifle, and you can tell vagrant to provision non-root but the user must exists. The easiest way will be sudo -H -E -u <user> <command> On Sat, May 9, 2015 at 7:55 AM, Johann Schweigl <[email protected]> wrote: > I'm running a series of shell provisioning steps as root. One of these steps > creates a new user. Is it possible to run subsequent steps as this user? > privileged = false just switches to the vagrant user. > > I know I could do it using a wrapper script that takes the user name as > parameter and su's another script, but i'm curious if it could be done in > the Vagrantfile natively. > > Best regards > JS > > -- > 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.
