Redhat7破解root密碼步驟
方法一:
開機啟動是調至第2項,按字母e進去,将有root=UUID….. ro的那一行,ro後面全删掉,添加rd.break(僅限該行部分),然後按Ctrl+x
# mount –o remount,rw /sysroot/
# chroot /sysroot/
# passwd
輸入新密碼
# touch /.autorelabel
# exit
方法二:
開機啟動是調至第2項,按字母e進去,将有root=UUID….. ro的那一行,最後的rhgbquiet改為init=/bin/bash,然後按Ctrl+x
# mount –o remount,rw /
# exec /sbin/init
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1718315如需轉載請自行聯系原作者
yangzhimingg