当前位置: 移动技术网 > 科技>操作系统>Linux > linux破解root登录密码,并重置

linux破解root登录密码,并重置

2018年09月06日  | 移动技术网科技  | 我要评论

重启系统后按'e'键,进入编辑模式,在'utf -8'后空格输入'rd.break'后,按快捷键'ctrl+x'进入新界面进行编辑,代码如下:

switch_root:/# mount -o remount,ru /sysroot/

switch_root:/#mount

switch_root:/#chroot /sysroot

sh-4.2# passwd root

new password:(输入新密码)

retype new password:(重新输入密码)

sh-4.2# touch / .autorelabel

sh-4.2#exit

swich_root:/# reboot

重置密码完成

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网