Redhat7root密碼破解

1、系統開機,出現引導界面,選擇第一項,按e進入編輯模式;

2、找到"fi"下面一行以"linux16"開頭,按end健,將光標移動到最後,刪除末尾字符到"ro",輸入"rd.break"(redhat6是1或single),Press Ctrl+x to Start;

3、在switch_root:/#下輸入mount -o remount,rw /sysroot

4、switch_root:/#chroot /sysroot

5、sh-4.2# passwd root

6、sh-4.2#touch /.autorelabel  重打標籤

7、exit

8、exit

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章