• 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 in RHEL/CentOS and Fedora

AnonyViet by AnonyViet
January 25, 2023
in Network
0

This article will guide you through simple steps to reset root password in Linux based distributions RHEL like CentOS 8 and Fedora 35/34.

Join the channel Telegram of the AnonyViet 👉 Link 👈

Note: This article is about resetting the root password, not finding the password. After resetting the password, you will log in with the new root password.

How to Reset Root Password in RHEL/CentOS & Fedora

First, reboot your system and at the grub boot menu select the kernel (usually the first option) that you want to boot from and press the ‘e’ key on your keyboard.

How to Reset Root Password in RHEL/CentOS and Fedora

On the next screen, you will see the kernel’s boot parameters as shown below, here find the line that starts with kernel= and add parameter rd.break at the end as shown and then press Ctrl + x key combination.

How to Reset Root Password in RHEL/CentOS and Fedora 9

On the next screen, you will enter the emergency mode, here press the Enter key to enter the shell. Now make sure to confirm that you remount the sysroot folder with read and write permissions. By default, it is mounted with read-only mode specified as ro.

# mount | grep sysroot

How to Reset Root Password in RHEL/CentOS and Fedora 10

Now remount the sysroot folder with read and write permissions and confirm the permissions again. Notice that this time, the permissions have changed from ro (read only) to rw (read and write) as shown below.

# mount -o remount,rw /sysroot/
# mount | grep sysroot

How to Reset Root Password in RHEL/CentOS and Fedora 11

Next, mount the root file system in read and write mode with the following command.

# chroot /sysroot

Next, use the passwd command to reset the root password with the new password and confirm it.

# passwd

How to Reset Root Password in RHEL/CentOS and Fedora 12

At this point, you have successfully reset your root user password. The rest is to relabel all the files with SELinux.

# touch /.autorelabel

How to Reset Root Password in RHEL/CentOS and Fedora 13

Finally, type exit and then log out to start the SELinux relabeling process.

How to Reset Root Password in RHEL/CentOS and Fedora 14

This process usually takes a few minutes, and once completed, the system will reboot and prompt you to log in as the root user with the new password.

How to Reset Root Password in RHEL/CentOS and Fedora 15

And that’s how you reset the root password in Linux distributions RHEL/CentOS 8 and Fedora 35/34.

Alternatively, you can also log in as root in Kali Linux here.

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

Tags: FedoraPasswordResetRHELCentOSroot
Previous Post

Lesson 137: Calculate days to birthdays in Excel

Next Post

How to convert Python File to EXE

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
How to convert Python File to EXE

How to convert Python File to EXE

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
Instructions on how to get Norton 360 Deluxe for 1 year for free

Instructions on how to get Norton 360 Deluxe for 1 year for free

July 19, 2026
Instructions for checking Windows copyright using Powershell to avoid penalties

Instructions for checking Windows copyright using Powershell to avoid penalties

July 19, 2026
Who leaked Windows 11?

Who leaked Windows 11?

July 18, 2026
3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
Instructions on how to get Norton 360 Deluxe for 1 year for free

Instructions on how to get Norton 360 Deluxe for 1 year for free

July 19, 2026
Instructions for checking Windows copyright using Powershell to avoid penalties

Instructions for checking Windows copyright using Powershell to avoid penalties

July 19, 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

3 coolest ways to turn off your computer

3 coolest ways to turn off your computer

July 19, 2026
Instructions on how to get Norton 360 Deluxe for 1 year for free

Instructions on how to get Norton 360 Deluxe for 1 year for free

July 19, 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