Set the uid of the vagrant user in kitchen

I’m testing a cookbook to create multiple user and I’m setting the user to hard-coded uids. That part is working great. The problem I’m having the default vagrant user is set to a UID I’m trying to use.

Is it possible to change the vagrant users UID at creation of the of the VM.

I think that user is baked in to the base image so you would have to build your own box for whatever vagrant driver you are using.

I’ve done more research on this. It appears that it the vagrant user uses the same UID of the user that creates the vagrant VM. So if the UID on the user creating the vagrant VM is 600 then the vagrant user on the VM will be set to 600.