From b9363e97fba9d3d801a2d1a8b205a95892c6dd5b Mon Sep 17 00:00:00 2001 From: Christopher Glass Date: Fri, 25 Aug 2017 08:37:18 +0200 Subject: [PATCH] Explicitely permit passworded root login over SSH. --- live-build/ubuntu-cpc/hooks/042-vagrant.binary | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/ubuntu-cpc/hooks/042-vagrant.binary b/live-build/ubuntu-cpc/hooks/042-vagrant.binary index 1c8b8fbd..09edf199 100755 --- a/live-build/ubuntu-cpc/hooks/042-vagrant.binary +++ b/live-build/ubuntu-cpc/hooks/042-vagrant.binary @@ -81,6 +81,9 @@ cat << EOF > ${mount_d}/etc/sudoers.d/vagrant vagrant ALL=(ALL) NOPASSWD:ALL EOF +# We should permit root login with password :( +sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/g' ${mount_d}/etc/ssh/sshd_config + # Add the insecure vagrant pubkey to the vagrant user, as is expected by the # vagrant ecosystem (https://www.vagrantup.com/docs/boxes/base.html) chroot ${mount_d} chmod 0440 /etc/sudoers.d/vagrant