Forgetting your Ubuntu Linux password can be frustrating, but don’t panic! There are a few ways to regain access to your system. This guide will walk you through some common solutions.

Reset Password via Recovery Mode

  1. Boot into Recovery Mode:
    • During system startup, press and hold the Shift key to enter the GRUB boot menu.
    • Select your Ubuntu system and press ‘e’ to enter edit mode.
    • Locate the line starting with “linux” and append “init=/bin/bash” at the end.
    • Press Ctrl+x or F10 to save and boot.
  2. Mount File System and Change Password:
    • In the bash prompt, type the following commands:
    • mount -o remount,rw /
    • passwd UserName
    • Enter the username for which you want to change the password and follow the prompts to set a new one.
  3. Reboot:
    • Type reboot to restart your system and log in with the new password.
Image-1
Image-2
Image-3

By Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞

Leave a Reply

Your email address will not be published. Required fields are marked *