Re: [systemd-devel] how to login into a container booting with a minimal 'debian distro unstable' via nspawn
On Sun, Mar 25, 2018 at 7:36 PM, Florian Held 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 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] how to login into a container booting with a minimal 'debian distro unstable' via nspawn
Hi Florian, On Sun, Mar 25, 2018 at 9:36 AM, Florian Held wrote: > 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? You can enter the container and just run a root shell on it with this command: # systemd-nspawn -D ~/debian-tree/ /bin/sh (That's equivalent of single-user mode or a rescue shell on a machine.) At that step, you can change the root password: # passwd root At that point, boot the container again (with "-b") and you should be able to log in. I hope that helps! Cheers, Filipe smime.p7s Description: S/MIME Cryptographic Signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] how to login into a container booting with a minimal 'debian distro unstable' via nspawn
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? Thanks in advance, Flo ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel