Show Table of Contents
10.4.5. 尝试登录时出现的问题
如果没有在 firstboot 页面中创建用户帐户,请按 Ctrl+Alt+F2 组合键切换到控制台,以 root 用户登录,并使用分配给 root 用户的密码。
如果忘记 root 密码,请将系统引导至
linux single。
如果要使用基于 x86 的系统,并已经安装引导装载程序,则请在载入 GRUB 引导页面后,输入
e 进行编辑。此时会显示用于所选择的引导标签的配置文件中的条目列表。
选择开头为
kernel 的行,然后输入 e 来编辑这一引导条目。
在
kernel 行结尾添加:
single
按 Enter 键来退出编辑模式。
回到引导装载程序屏幕后,键入
b 来引导系统。
引导至单用户模式后,可以看到
# 提示符,必须输入 passwd root 以便为 root 用户输入新密码。此时可输入 shutdown -r now 以便使用新的 root 用户密码重启该系统。
如果忘记用户帐户密码,则必须成为 root 用户。要成为 root 用户,请输入
su - 命令,并在看到提示时输入 root 密码。然后输入 passwd <username>。这样就可以为具体用户帐户输入新密码。
如果没有出现图形登录页面,请检查硬盘是否有兼容性问题。《硬件兼容性列表》位于:
https://hardware.redhat.com/
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.