OKlinux

 

CentOS的开机密码重置

1.重启系统进入grub2 菜单界面

2.按“e”键编辑项目

3.删除"rhgb", "quiet", "LANG=***" ,添加 "rw","init=/bin/bash"

4.按Ctrl-x启动

5.touch /.autorelabel # 防止Selinux权限设定导致无法重置密码
   passwd #重置root密码

   exec /sbin/init #相当于reboot重启

 

 

分类:

技术点:

相关文章:

  • 2021-10-22
  • 2021-05-19
  • 2021-10-29
  • 2022-01-08
猜你喜欢
  • 2021-12-07
  • 2021-08-28
  • 2021-11-05
  • 2021-05-16
  • 2022-02-01
  • 2022-12-23
相关资源
相似解决方案