[lxc-devel] [PATCH 1/3] lxc-debian: define a password for root
Laurent Vivier
laurent at vivier.eu
Fri Jun 17 01:19:30 UTC 2016
Signed-off-by: Laurent Vivier <laurent at vivier.eu>
---
templates/lxc-debian.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index 56953b6..5dc4e0b 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -163,6 +163,10 @@ EOF
echo "Timezone in container is not configured. Adjust it manually."
fi
+ echo "root:root" | chroot $rootfs chpasswd
+ chroot $rootfs passwd -e root
+ echo "Root password is 'root', please change !"
+
return 0
}
--
2.5.5
More information about the lxc-devel
mailing list