- 开机时,在进行到如下读秒阶段是按任意键进入菜单
- 进入到如下图的界面,根据提示,按下e编辑内核参数
-
进入如下界面选择第二项,按e进行编辑
-
进入如下界面,输入空格,后接init 1,即设定从level1 启动
-
回车后返回到如下界面,选择第二项,按b就可以进入单用户模式了
-
进入单用户后,界面如下
- 进入单用户模式后,直接passwd修改密码,或者vi编辑/etc/passwd,然后删除root用户属性中第二列的x,清空密码。
-
重新启动,即可用修改后的密码登录,或者空密码登陆后再修改密码