Kaçırılmayacak FIRSAT : Sınırsız Hosting Paketlerinde .COM Veya .COM.TR Sepette ÜCRETSİZ ! Ücretsiz .COM İçin Hemen TIKLAYIN !
Bizi Ara (10:00-18:00) Bize Soru Sor !
Bize Soru Sor ! Bizi Ara (10:00-18:00)
X

Please Select Country (Region)

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X
X

Please Select Country (Region)

Turkey (Türkçe)Turkey (Türkçe) Worldwide (English)Worldwide (English)
X

I Forgot My Ubuntu Password: Solutions and Step-by-Step Guide

Forgot your Ubuntu password? Don’t worry, this is a common issue, and there are various solutions available. In this guide, you will learn the effective methods to reset your Ubuntu password step by step.

Resetting Password Using Ubuntu Recovery Mode

Ubuntu allows you to resolve system issues using recovery mode. You can use this mode to reset your password:

  1. Turn on your computer and hold the Shift key until the Grub menu appears.
  2. From the Grub menu, select "Advanced options for Ubuntu".
  3. From the list, navigate to the entry that contains "(recovery mode)" and press Enter.
  4. In the recovery menu, select the "root" option. This will start the system in root user mode.
  5. At the command prompt, type mount -o rw,remount / to make the file system writable.
  6. Then, enter the command passwd username to set your new password.
  7. After confirming your new password, type reboot to restart the system.

Using a Live USB to Recover the Password

If you have an Ubuntu installation USB, this method works quite well:

  1. Insert the Ubuntu Live USB into your computer and boot from the USB.
  2. When the Ubuntu interface loads, select the "Try Ubuntu" option.
  3. Open the terminal and type sudo fdisk -l to find the disk partition where Ubuntu is installed.
  4. Mount the disk partition using the command sudo mount /dev/sdXY /mnt (replace sdXY with your actual disk partition information).
  5. Type sudo chroot /mnt to switch to the root directory.
  6. Use passwd username to set your new password.
  7. Finally, type exit to exit the command prompt and restart the system.

Ubuntu Forgot Password: Solutions and Step-by-Step Guide

Resetting Password via Grub Menu

You can also reset your password from the Grub menu. Here are the steps:

  1. Turn on your computer and hold the Shift key until the Grub menu appears.
  2. When you reach the Ubuntu entry, press the e key to enter the edit mode.
  3. At the end of the Linux line, add init=/bin/bash.
  4. Press Ctrl + X to start the system with these settings.
  5. At the command prompt, type mount -o remount,rw / to make the file system writable.
  6. Use passwd username to set your new password and type reboot to restart the system.

Changing Password by Accessing Root User

Accessing the root user is an effective way to reset the password:

  1. Enter recovery mode and select the "root" option to access the system as a root user.
  2. To make the file system writable, type mount -o rw,remount /.
  3. Enter passwd username to set your new password.
  4. After confirming the new password, type reboot to restart the system.

Resetting Password via SSH Connection Remotely

It is possible to reset the password remotely via SSH, but SSH access must have been previously enabled:

  1. If you have SSH access, connect to your Ubuntu system from another device using a terminal or SSH client.
  2. Once the SSH session opens, type sudo passwd username to set your new password.
  3. After successfully changing your password, log out and continue using the system normally.

Frequently Asked Questions

I forgot my Ubuntu password, how do I access recovery mode?
Hold the Shift key during boot to access the Grub menu, then select the recovery mode option.
Which Ubuntu version should I use to change the password via a Live USB?
It is generally recommended to use the most up-to-date Ubuntu Live USB version, but ensure it is compatible with your installed system version.
I cannot access the Grub menu, what should I do?
Your system might have a fast boot setting or BIOS security options. Check these settings to ensure the Grub menu is visible.
Is it secure to reset the password remotely via SSH?
Yes, but it is recommended to do this only via a secure connection and when SSH access is properly configured.