search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

Calos | Calos's Blog - Page 17

人多少會有健忘的時候

有時候會不小心忘記root密碼

或是不小心把設定改爛進不去系統

這時候就可以利用single user mode去修復

重開機後選擇第四個開機選項進入single user mode

 

#進入single user mode後會詢問下面的東西,按Enter直接跳過 Enter full pathname of shell of RETURN for /bin/sh: #檢查並修正檔案系統 > fsck -p #載入所有 > mount -a #修改密碼 > pwsswd root #編輯改爛的設定 (example: /etc/rc.conf) > vi /etc/rc.conf
1
2
3
4
5
6
7
8
9
10
#進入single user mode後會詢問下面的東西,按Enter直接跳過
Enter full pathname of shell of RETURN for /bin/sh:
#檢查並修正檔案系統
> fsck -p
#載入所有
> mount -a
#修改密碼
> pwsswd root
#編輯改爛的設定 (example: /etc/rc.conf)
> vi /etc/rc.conf
[FreeBSD] Single user mode was last modified: 2017-02-06 by Calos


熱門推薦

本文由 caloskaoorg 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦