Skip to content
www.mytechnote.ru
Menu
  • Administration
    • Scripts
  • Equipment
    • Reviews
    • Instructions
  • Other
  • English
    • English
    • Русский
Menu

How to Reset Root Password in Ubuntu: A Step-by-Step Guide

Lost or forgotten your Ubuntu root password? Don’t fret! This detailed guide will walk you through the steps to easily reset it.

1. Pre-requisites for Password Reset

For successful Ubuntu password recovery, there’s a key requirement:

  • Physical access to the Ubuntu-installed server or computer.

With the right access, resetting your password is a matter of minutes.

2. Initiating the Reset Process

Begin by rebooting your computer. As it starts up, hold down the Shift key to trigger the Grub menu. It’s reminiscent of the F8 function in older Windows versions. If you don’t get it on your first try, don’t give up. If the menu doesn’t appear, consider performing a power reset during boot, and the menu should pop up on the next start.

Grub boot menu

3. Using the Grub Boot Window

Once inside the Grub menu, press the ‘e’ key. This action displays your system’s boot information, laying the groundwork for the reset.

4. Editing the Boot Configuration

In this section:

  • Locate the line starting with “linux”.
  • Remove parameters like “noprompt” or “quiet” if present.

Editing boot configuration in grub

  • Insert the following:

rw init=/bin/bash

Your configuration should now mirror the provided screenshot.

Edited configuration in grub for root password reset

To proceed, press F10. After booting, check if the root partition has mounted with both read and write permissions using:

mount | grep -w /

If you see “rw” in the results, you’re on track. Now, input:

passwd root

You’ll be prompted to enter your new password twice.

5. Restart and Access Ubuntu with New Password

Once done, reboot your system. Congratulations! Your Ubuntu administrator password has now been reset, and you can log in as root with full privileges.

Bonus: Resetting Password in Centos

Stay tuned as we delve into password reset steps for Centos in our upcoming post!

Conclusion

Regaining access to your Ubuntu system is straightforward with our guide. Share your experiences or questions in the comments below!

 

Posted on 23.07.201730.05.2024 by sanglyb

Post navigation

← Configuring Bind9 with ACL for Dynamic DNS Redirection
How to Reset Root Password in CentOS 6 and CentOS 7: A Step-by-Step Guide →

Leave a Reply Cancel reply

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

Подписывайтесь

Youtube
vk
telegram
github
twitter
rss
  • Форум
  • Об авторе
  • Поддержать автора

Популярные записи

Новые записи

  • How to Extend an LVM Partition in Linux
  • SCCM Reporting Errors After Migrating from SQL Server 2016 to 2019
  • Problem Using PassFiltEx on Older CPUs
  • How to remove attachments from old calendar events in Exchange using a script
  • How to download and install Office 2024 LTSC

Архивы

  • 2026 (3)
  • 2025 (5)
  • 2024 (7)
  • 2023 (30)
  • 2022 (4)
  • 2020 (17)
  • 2017 (82)
  • 2016 (5)
© 2015-2026 www.mytechnote.ru
Использование материалов сайта возможно только с разрешения владельца или обязательна индексируемая, прямая, передающая вес ссылка на материал.