[lxc-devel] [PATCH 1/3] lxc-debian: define a password for root

Serge E. Hallyn serge at hallyn.com
Fri Jun 17 14:52:14 UTC 2016


Quoting Laurent Vivier (laurent at vivier.eu):
> Signed-off-by: Laurent Vivier <laurent at vivier.eu>

Sorry but isn't this a regression?  How about making this subject to a
--default-password argument or something?

I think Michael said he might be around right now, and at one point
he was trying to standardize this across templates, so maybe he wants
to comment (cc:d)

> ---
>  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
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list