Linux 密码忘记解决方法
1. 开机启动出现grub画面。
Linux 密码忘记解决方法
 
2、选择linux引导项,然后按e键,进入如下界面:
Linux 密码忘记解决方法
 
3. 选择以kernel开头的一行,再按e 键,在此行的末尾,按空格键后输入single,以回车键来退出编辑模式;
Linux 密码忘记解决方法
 
4. 回车返回,然后按b键启动,即可直接进入linux单用户模式
Linux 密码忘记解决方法
 
5. vi /etc/shawd
删除root项中的密码
Linux 密码忘记解决方法
 
6、reboot重启计算机,root密码为空。
OK完成密码恢复!!!

转载于:https://blog.51cto.com/lorna8023/232075

相关文章:

  • 2022-01-06
  • 2021-06-27
  • 2021-05-05
  • 2021-08-17
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-06-13
相关资源
相似解决方案