[systemd-devel] Fedora 21 and systemd-nspawn
Lennart Poettering
lennart at poettering.net
Mon Jun 15 08:32:37 PDT 2015
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