Create vagrant user in vagrant group
Create vagrant user in vagrant group

The Vagrant documentation for option "group" in syncing folders states
(in https://www.vagrantup.com/docs/synced-folders/basic_usage.html#group):
"By default this will be the SSH user". Vagrant indeed tries to change
the owner and group of synchronized files to vagrant:vagrant (not
vagrant:users). It outputs:

    The following SSH command responded with a non-zero exit status.
    Vagrant assumes that this means the command failed!

    find /vagrant '!' -type l -a '(' ! -user vagrant -or ! -group vagrant
    ')' -exec chown vagrant:vagrant '{}' +

    Stdout from the command:

    Stderr from the command:

    find: 'vagrant' is not the name of an existing group

Fix this by using --user-group instead of --gid users in the useradd
command which creates user vagrant.

aidanharris/packer-arch,appleby/Lisp-In-Small-Pieces-VM,elasticdog/packer-arch,agt-the-walker/packer-arch,slash170/packer-arch,tomaspapan/packer-arch,cosmo0920/packer-arch