|
如何通過(guò)suse linux的單用戶(hù)模式修改root密碼
1. 啟動(dòng)grub時(shí)候選擇 Failsave, 下面的“boot option“內(nèi)容全部刪除,寫(xiě)入init=/bin/bash,進(jìn)入單用戶(hù)模式
2. 稍等會(huì)出現(xiàn)命令行 (none)#: #mount -o remount, rw / [enter] //根文件系統(tǒng)重新mount為可讀寫(xiě),有了讀寫(xiě)權(quán)限后就可以通過(guò)passwd命令修改密碼了 #cd /usr/bin [enter] #passwd [enter] //提示輸入root的新密碼 #mount -o remount,ro/ [enter] //將根文件系統(tǒng)置為原來(lái)的狀態(tài) |
|
|
來(lái)自: jan_hf > 《我的圖書(shū)館》