I mounted a guest centos system and changed inittab file to single user mode. Then I unmounted it and used virsh console to access the guest system in single user mode. However I got 'unknown user name' message as following:

[root@guest34 /]# passwd root

passwd: Unknown user name 'root'.

有帮助吗?

解决方案

Try using just passwd without the username.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top