[systemd-devel] how to login into a container booting with a minimal 'debian distro unstable' via nspawn

Mantas Mikulėnas grawity at gmail.com
Sun Mar 25 16:50:24 UTC 2018


On Sun, Mar 25, 2018 at 7:36 PM, Florian Held <floriheld at googlemail.com>
wrote:

> Hi,
> how is it possible to log in into a container booting a minimal unstable
> debian distro via nspawn. After running:
>
> # debootstrap --arch=amd64 unstable ~/debian-tree/
> # systemd-nspawn -bD ~/debian-tree/
>
> prompts username followed by password. The combination
>
> "root"
> ""
>
> without quotes doesn't work. How can I login?
>
>
Does debootstrap actually create a passwordless root account?

If it's passwordless, make sure pam_securetty.so is not active (in the
container's /etc/pam.d).


-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180325/5aed858f/attachment.html>


More information about the systemd-devel mailing list