1. 程式人生 > >Linux系統如何破解密碼的教程

Linux系統如何破解密碼的教程

EQ:Linux系統如何破解密碼? 答案: 1.Reboot the system.(重啟系統) 2.Interrupt the boot loader count down by pressing anykey. 3.Move the cursor to the entry that needs to be booted. 4.Press “e” to edit the select edentry.(按e進入編輯介面) 5.Move the cursor to the kernel command line(the line that start swith linux16.(查詢括號內的內容) 6.Append rd.break.(其後加入rd.break) 7.Press Ctrl+x to start.(按ctrl+x開始) 8.Remount /sysroot as read-write. 輸入:switch_root:/# mount -o remount,rw /sysroot(以讀寫方式重新掛載根下sysroot) 9.Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree 輸入:switch_root:/# chroot /sysroot 10.Set a new root password: 輸入:sh-4.2# passwd [root] (改變root密碼) or 輸入:sh-4.2# passwd -d root (刪除root密碼) 11.Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot. 輸入:sh-4.2# touch /.autorelabel 檔案建立 根目錄 .autorelabel(標籤檔案) 12. sh-4.2# exit 13. switch_root:/# exit