Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #211261 > unrolled thread
| Started by | arne <sp113438@telfort.nl> |
|---|---|
| First post | 2019-07-12 03:40 +0200 |
| Last post | 2019-07-13 14:40 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
systemd-container login as root no longer possible? arne <sp113438@telfort.nl> - 2019-07-12 03:40 +0200
Re: systemd-container login as root no longer possible? Ulf Volmer <u.volmer@u-v.de> - 2019-07-12 17:40 +0200
Re: systemd-container login as root no longer possible? Michael Biebl <biebl@debian.org> - 2019-07-13 01:50 +0200
Re: systemd-container login as root no longer possible? SOLVED arne <sp113438@telfort.nl> - 2019-07-13 14:40 +0200
| From | arne <sp113438@telfort.nl> |
|---|---|
| Date | 2019-07-12 03:40 +0200 |
| Subject | systemd-container login as root no longer possible? |
| Message-ID | <yiSHw-58g-5@gated-at.bofh.it> |
After upgrading my containers from stretch to buster I can no longer log in as root I make the container with debootstrap, then # systemd-nspawn --directory=/mnt/mycontainer passwd then I start the container with # systemd-nspawn --register=yes -D /mnt/mycontainer /sbin/init & then # machinectl login mycontainer gives me a login screen When I enter "root" no password prompt is shown In stretch containers there is no problem, I get the password prompt and can log in as root. I tried with buster to make a new container on buster, can not log in. Perhaps it is a new feature of systemd? Lucky me, I had copies of my stretch containers. Is this a bug or am I missing something?
[toc] | [next] | [standalone]
| From | Ulf Volmer <u.volmer@u-v.de> |
|---|---|
| Date | 2019-07-12 17:40 +0200 |
| Message-ID | <yj5Op-4Ux-1@gated-at.bofh.it> |
| In reply to | #211261 |
On 12.07.19 03:20, arne wrote: > # machinectl login mycontainer > > gives me a login screen > > When I enter "root" > no password prompt is shown Did you checked /etc/securetty in your container? This is the most common cause for this kind of error. Best regards Ulf
[toc] | [prev] | [next] | [standalone]
| From | Michael Biebl <biebl@debian.org> |
|---|---|
| Date | 2019-07-13 01:50 +0200 |
| Message-ID | <yjdsB-172-3@gated-at.bofh.it> |
| In reply to | #211261 |
[Multipart message — attachments visible in raw view] — view raw
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/ -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
[toc] | [prev] | [next] | [standalone]
| From | arne <sp113438@telfort.nl> |
|---|---|
| Date | 2019-07-13 14:40 +0200 |
| Subject | Re: systemd-container login as root no longer possible? SOLVED |
| Message-ID | <yjptL-dr-7@gated-at.bofh.it> |
| In reply to | #211324 |
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!
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web