Close Menu
    What's Hot

    How to change message background on Android

    September 28, 2023

    The Ultimate Guide to Casting Oculus Quest 2 to Firestick: Unlock a Whole New Dimension of VR

    September 21, 2023

    Instagram Marketing: 10 Trends To Follow In 2023

    May 23, 2023
    Facebook X (Twitter) Instagram
    • How To
    • MAC OS
    • Tech
    • Windows
    Facebook X (Twitter) Instagram YouTube
    TechSpiteTechSpite
    • Home
    • How To
    • MAC OS
    • iOS
    • Tech
    • Windows
    • Android
    • Review
    • Games
    • Virtual Machines
      • VirtualBox
      • VMware
    TechSpiteTechSpite
    Home»How To»How to Reset CentOS Root Password?
    How To

    How to Reset CentOS Root Password?

    AzzazBy AzzazJanuary 18, 2022Updated:September 13, 2023No Comments3 Mins Read1 Views
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    Reset CentOS Root Password
    Reset CentOS Root Password
    Share
    Facebook Twitter LinkedIn Pinterest Email

    In order to keep any device private or safe from strangers then we need to password protect the device. A strong password will be better and difficult to be predicted by someone. I usually add a strong password to my laptop so that no one should think to get access. But remembering a strong password is really difficult because one day we might forget that. At that time, we have to reset the password which will be pretty time-consuming. Whenever I password protects my gadget or social media accounts, I try to note them down on a notebook so that I should not forget that. Therefore, in this article, I will show you how to reset CentOS root password.

    Most of the time, it happens that we may forget the password. If you forget the password of your CentOS, then don’t worry because there is a simple solution. It happens when you don’t log in as a root user for a long time. I have also installed CentOS on a virtual machine but now I forgot the root password, I researched and found out an easy procedure to reset CentOS’s lost password. I have tried many times and it worked very well, you can also try the below procedure to Reset CentOS Root Password.

    Table of Contents

    Toggle
    • How to Reset CentOS Root Password
    • Bottom Line

    How to Reset CentOS Root Password

    Step 1. At first, make sure to reboot your CentOS system, on the boot page, you need to select CentOS Linux 7 or 8 and press E to edit the selected option.

    CentOS 7 or 8

    Step 2. Now, scroll down until you find the underlined below ro. You have to delete the selected yellow code and replace it with the next screenshot code.

    Bring Changes

    Step 3. Here you have to change the ro into rw to start into a bash shell. It should look like rw init=/sysroot/bin/sh.

    Reset CentOS Root Password
    Change the command

    Step 4. When you did that, just press ctrl + X from your keyboard in order to start single-user mode using the bash shell.

    Reset CentOS Root Password
    Reset CentOS Root Password Now

    Step 5. At last, type chroot /sysroot command and press enter. Then type password root in order to change the root password. Type your new password two times and you are done with your password of CentOS.

    Step 6. Finally, after changing the root password, type touch /.autorelabel to update SELinux parameter. When you have done everything, exit and reboot the system.

    Bottom Line

    It was step by step guide on How to Reset CentOS Root Password. Whenever you forget the password of the CentOS system, you can follow up the above method. Therefore, I hope you found this article helpful. If you faced any kind of problem while resetting CentOS forgotten password, then you comment down below.

    Explore more:

    • How to Reset Kali Linux Root Password
    • How to Set Static IP Address in Kali Linux using GUI and ifconfig
    CentOS CentOS Linux CentOS Linux 8 CentOS Root Password Reset CentOS Forgotten Password Reset CentOS Root Password Reset Forgotten Root Password in CentOS 8
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Azzaz

    Hi, I am Azzaz Sheikh a passionate blogger. I am a tech lover guy who spends most of the time trying new things in the world of Technology. I love to discover latest material related to Technology and loves to share with you guys.

    Related Posts

    How to change message background on Android

    September 28, 2023

    The Ultimate Guide to Casting Oculus Quest 2 to Firestick: Unlock a Whole New Dimension of VR

    September 21, 2023

    10 Best LinkedIn Tips To Boost Career Opportunities

    May 19, 2023

    10 Latest Facebook Networking Tips For Amazing Results!

    April 26, 2023

    Download YouTube Shorts On iPhone – 5 Simple Steps

    April 24, 2023

    How To Fake GPS Location on iPhone Without Jailbreaking [2023]

    April 20, 2023
    Leave A Reply Cancel Reply

    Top Posts

    Download macOS Monterey ISO Image – Latest Version

    June 11, 20215,316 Views

    Download macOS High Sierra 10.13 ISO [Virtual Machine Images]

    January 16, 20204,007 Views

    Download macOS Big Sur DMG File – (Direct Links)

    September 1, 20203,251 Views
    Latest Reviews

    Review: Kia EV6 2022 The Best Electric Vehicle Ever?

    January 14, 2021
    85

    Google Pixel 7, iPhone 14 Compared: Check Out 5 Major Differences

    January 13, 2021
    TechSpite
    Facebook X (Twitter) Instagram Pinterest YouTube Dribbble
    • Home
    • How To
    • MAC OS
    • iOS
    • Tech
    • Windows
    • Android
    • Contact Us
    Copyright © 2023 TechSpite. All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.