Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Ubuntu 遺忘密碼 5 步驟重置:GRUB 單用戶模式實戰

編輯:Linux 教學

遺忘 Ubuntu 使用者密碼無需重灌,透過 GRUB 進入單用戶模式即可在 5 步驟內重置。

  1. 開機出現 Press ESC to enter grub menu 時立即按 Esc。
  2. 選擇 recovery mode(通常是第 2 項),按 Enter。
  3. 系統進入根 Shell 提示符,輸入 passwd 使用者名稱。
    若忘記帳號名,先執行 ls /home 查看。
  4. 依提示輸入新密碼兩次(不顯示字元)。
  5. 執行 shutdown -r now 重啟,以新密碼登入。

全程約 2 分鐘,保留所有資料與設定,比重灌快速得多。

Copyright © Windows教程網 All Rights Reserved