How to Reset Forgotten Root Password in Ubuntu

How to Reset Forgotten Root Password in Ubuntu

Written By
T
TecMint
Jun 20, 2024

It’s a common scenario: You’re working on your Ubuntu system and suddenly realize you’ve forgotten the root password, which can be a frustrating experience, as the root account is essential for performing critical administrative tasks.

However, don’t worry. In this guide, you will learn how to reset the forgotten root password on Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04 LTS.

T

TecMint

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.