Re: systemd-container login as root no longer possible? SOLVED
On Sat, 13 Jul 2019 01:30:46 +0200
Michael Biebl <biebl@debian.org> wrote:
> Hi
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830255
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731656
>
> might be related.
> Does it help if you add pts/0 to /etc/securetty inside your buster
> container?
> Would be great if you can report back if that fixes your issue.
> If you want to use machinectl, you also need to have dbus installed
> inside your container.
>
> Interesting to see that /etc/securetty has apparently been removed
> just recently. That change is unstable only, i.e. won't help you for
> a buster container. See
> https://tracker.debian.org/news/1042624/accepted-shadow-147-1-source-into-unstable/
>
>
The bug was in securetty.
I added following to /etc/securetty
# systemd containers
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
and everything works again.
I can log in as root several times.
Thanks Michael and Ulf!
Reply to: