【发布时间】:2015-06-15 15:01:47
【问题描述】:
我正在尝试使用 systemd-nspawn,但是当我启动它并尝试以 root 身份登录时 - 它仍然要求输入密码。他们提到关闭审计 - 我已经这样做了。
我的 cmd 行最后说 audit=0。
$ 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
(这是 fedora 21)使用这些文档https://fedoraproject.org/wiki/Features/SystemdLightweightContainers
当我尝试更改密码时,它告诉我我遇到了身份验证令牌操作错误。
$ 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#
【问题讨论】: