• 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

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
Compilation of free and cheap APIs to run OpenClaw stably
Network

Compilation of free and cheap APIs to run OpenClaw stably

March 10, 2026
3 Services to Determine IP Location for Website (IP Geolocation API)
Network

3 Services to Determine IP Location for Website (IP Geolocation API)

March 10, 2026
How to buy a .STORE domain name for 1 USD (2026): Detailed instructions from A–Z
Network

How to buy a .STORE domain name for 1 USD (2026): Detailed instructions from A–Z

March 3, 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
Inline Feedbacks
View all comments

Recent News

Key Smart Call Blocker Premium 1 year – Block spam calls

Key Smart Call Blocker Premium 1 year – Block spam calls

May 13, 2026
How to use multiple Zalo on one computer for business people

How to use multiple Zalo on one computer for business people

May 13, 2026
Compare vivo X300 Ultra and vivo X200 Ultra: A comprehensive leap forward for the photography “monster”

Compare vivo X300 Ultra and vivo X200 Ultra: A comprehensive leap forward for the photography “monster”

May 12, 2026
Instructions for receiving 1 month of ChatGPT Plus for free

Instructions for receiving 1 month of ChatGPT Plus for free

May 12, 2026
Key Smart Call Blocker Premium 1 year – Block spam calls

Key Smart Call Blocker Premium 1 year – Block spam calls

May 13, 2026
How to use multiple Zalo on one computer for business people

How to use multiple Zalo on one computer for business people

May 13, 2026
Compare vivo X300 Ultra and vivo X200 Ultra: A comprehensive leap forward for the photography “monster”

Compare vivo X300 Ultra and vivo X200 Ultra: A comprehensive leap forward for the photography “monster”

May 12, 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

Key Smart Call Blocker Premium 1 year – Block spam calls

Key Smart Call Blocker Premium 1 year – Block spam calls

May 13, 2026
How to use multiple Zalo on one computer for business people

How to use multiple Zalo on one computer for business people

May 13, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

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