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