首页 > 其他 > 详细

Redhat7破解root密码步骤

时间:2015-12-01 01:50:50      阅读:200      评论:0      收藏:0      [点我收藏+]

Redhat7破解root密码步骤

 

方法一:

 

开机启动是调至第2项,按字母e进去,将有root=UUID…..  ro的那一行,ro后面全删掉,添加rd.break(仅限该行部分),然后按Ctrl+x

 

# mount –o remount,rw /sysroot/

# chroot /sysroot/

# passwd

输入新密码

# touch /.autorelabel

# exit

# exit

 

 

方法二:

 

开机启动是调至第2项,按字母e进去,将有root=UUID…..  ro的那一行,最后的rhgbquiet改为init=/bin/bash,然后按Ctrl+x

 

# mount –o remount,rw /

# passwd

输入新密码

# touch /.autorelabel

# exec /sbin/init

 


本文出自 “linux” 博客,请务必保留此出处http://yangzhiming.blog.51cto.com/4849999/1718315

Redhat7破解root密码步骤

原文:http://yangzhiming.blog.51cto.com/4849999/1718315

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!