From 20617c6f5166a54446d7f4f70b0a617dc6434c91 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Mon, 25 Sep 2017 18:02:09 -0400 Subject: [PATCH] Don't ask for password and GECOS while creating vagrant user --- live-build/ubuntu-cpc/hooks/042-vagrant.binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-cpc/hooks/042-vagrant.binary b/live-build/ubuntu-cpc/hooks/042-vagrant.binary index d763ff18..d748560c 100755 --- a/live-build/ubuntu-cpc/hooks/042-vagrant.binary +++ b/live-build/ubuntu-cpc/hooks/042-vagrant.binary @@ -72,7 +72,7 @@ chroot ${mount_d} apt-get clean # Vagrant users expect a "vagrant" user with a "vagrant" username. # See https://www.vagrantup.com/docs/boxes/base.html # Note: We decided NOT to allow root login with a default password. -chroot ${mount_d} adduser vagrant +chroot ${mount_d} adduser vagrant --disabled-password --gecos "" echo "vagrant:vagrant" | chroot ${mount_d} chpasswd # The vagrant user should have passwordless sudo.