• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to reset root password when forgotten in Ubuntu

AnonyViet by AnonyViet
January 25, 2023
in Network
0

In this article, I will show you how to reset the root password on Ubuntu. User roles on the Linux operating system are based on a hierarchy. The root user sits on the throne and can control the actions of all other users. It’s the admin/authentication rights of the root user, which controls the actions of any other user that has access to the Linux system.

Join the channel Telegram of the AnonyViet 👉 Link 👈

The root user can override or change normal user actions and permissions. As a result, things like system updates, application installation and configuration, and general system configuration may sometimes require the approval of the root user password.

How to reset root password when forgotten in Ubuntu

So what happens when a normal Linux user or system administrator forgets the system’s root password? Note that changing the root password is different from resetting the root password.

How to reset root password when forgotten in Ubuntu

The solution to this problem requires restarting your Ubuntu system, go to Grub boot loader and boot into the system Ubuntu from recovery mode.

Therefore, restart your Ubuntu and after the computer screen goes dim, keep pressing the keys [Esc] or [Shift] of the keyboard until you are redirected to the Grub menu screen.

How to reset root password when forgotten in Ubuntu 14
Use arrow keys [lên] and [xuống] of the keyboard to enter Advanced Options for Ubuntu.

How to reset root password when forgotten in Ubuntu 15
Press [Enter] and you will be redirected to another Grub window and select recovery mode.
How to reset root password when forgotten in Ubuntu 16Wait a moment, the screen below appears.
How to reset root password when forgotten in Ubuntu 17Select root Drop to root shell prompt and press [Enter] on your keyboard.

How to reset root password when forgotten in Ubuntu 18

At the bottom of the window, you will see a command line interface with direct access to the terminal root shell.

How to reset root password when forgotten in Ubuntu 19

The next step is to re-grant the root (/) filesystem partition with write permissions. Its default access partition is read-only.

# mount -rw -o remount /

How to reset root password when forgotten in Ubuntu 20

Next you are free to reset the root password and even the username if you want. Before resetting the root password, you need to identify the user associated with that password.

# ls /home

How to reset root password when forgotten in Ubuntu 21

After you have identified the root user, use the following command syntax to reset the root password:

# passwd username

You will be prompted twice to enter and reconfirm the new root password you want to use.

How to reset root password when forgotten in Ubuntu 22

Type escape key on terminal and press [Enter] on your keyboard. You will return to the Recovery Menu window. Select Resume normal boot.

How to reset root password when forgotten in Ubuntu 23

Ignore any graphics mode compatibility warnings as a complete system reboot should fix the error.

How to reset root password when forgotten in Ubuntu 24

Based on the root password you have set, you should be free to access your Ubuntu system again as the admin/root user.

How to reset root password when forgotten in Ubuntu 25

So you don’t have to worry about losing control of your root privileges on your Ubuntu system.

The article achieved: 5/5 – (100 votes)

Tags: forgottenPasswordResetrootUbuntu
Previous Post

10 steps to take when infected with data encryption Ransomware

Next Post

Lesson 140: How to calculate quarter in Excel

AnonyViet

AnonyViet

Related Posts

Is Renting a Cheap VPS to Run Docker Really Effective?
Network

Is Renting a Cheap VPS to Run Docker Really Effective?

July 2, 2026
How to get a free domain for 1 year from Gravatar
Network

How to get a free domain for 1 year from Gravatar

June 23, 2026
Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes
Network

Cloud Infrastructure Resilience: Mitigating Advanced Layer 7 Vulnerabilities and Securing High-Throughput Database Handshakes

June 20, 2026
Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
Next Post
Lesson 140: How to calculate quarter in Excel

Lesson 140: How to calculate quarter in Excel

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

How to rename Columns or Rows in Google Sheets

How to rename Columns or Rows in Google Sheets

October 5, 2026
How to install the latest Windows 11

How to install the latest Windows 11

October 4, 2026
Instructions for receiving 3 months of Shopee VIP from Vinaphone for 0 VND

Instructions for receiving 3 months of Shopee VIP from Vinaphone for 0 VND

October 3, 2026
How to create Safari extension on iOS 27 and macOS 27

How to create Safari extension on iOS 27 and macOS 27

October 3, 2026
How to rename Columns or Rows in Google Sheets

How to rename Columns or Rows in Google Sheets

October 5, 2026
How to install the latest Windows 11

How to install the latest Windows 11

October 4, 2026
Instructions for receiving 3 months of Shopee VIP from Vinaphone for 0 VND

Instructions for receiving 3 months of Shopee VIP from Vinaphone for 0 VND

October 3, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to rename Columns or Rows in Google Sheets

How to rename Columns or Rows in Google Sheets

October 5, 2026
How to install the latest Windows 11

How to install the latest Windows 11

October 4, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply