[systemd-devel] Fedora 21 and systemd-nspawn

Matthew Karas mkarascybi at gmail.com
Mon Jun 15 09:21:51 PDT 2015


Here is my output

https://gist.github.com/mkcybi/eae6a2a67c5d6666c864

---------- Forwarded message ----------
From: Lennart Poettering <lennart at poettering.net>
Date: Mon, Jun 15, 2015 at 11:32 AM
Subject: Re: [systemd-devel] Fedora 21 and systemd-nspawn
To: Matthew Karas <mkarascybi at gmail.com>
Cc: systemd-devel at lists.freedesktop.org


On Mon, 15.06.15 11:30, Matthew Karas (mkarascybi at gmail.com) wrote:

> I'm trying to use systemd-nspawn but when I launch it and try to login
> as root - it still asks for a password and I can't seem to set one.
> The docs for fedora mentioned turning off auditing - which I've done.
>
> My cmd line says audit=0 at the end.
>
>     $ cat /proc/cmdline
>     BOOT_IMAGE=/vmlinuz-3.19.7-200.fc21.x86_64
> root=/dev/mapper/fedora_localhost-root ro
> rd.lvm.lv=fedora_localhost/swap rd.lvm.lv=fedora_localhost/root rhgb
> audit=0 quiet
>
>
> (This is fedora 21) Using these docs
> https://fedoraproject.org/wiki/Features/SystemdLightweightContainers
>
> When I try to change the password it tells me I have a auth token
> manipulation error.
>
>     $ sudo systemd-nspawn -D /srv/eq1
>     Spawning container eq1 on /srv/eq1.
>     Press ^] three times within 1s to kill container.
>     -bash-4.3# passwd
>     Changing password for user root.
>     New password:
>     Retype new password:
>     passwd: Authentication token manipulation error
>     -bash-4.3#

Hmm, this is weird. This should just work if audit=0 is set on the
kernel cmdline. Is this f21 both inside and on the host?

If you strace what passwd is doing there, do you see anything
interesting? If in doubt, paste the output on some pastebin and link
it here.

Lennart

--
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list