---
title: How to recover root password in Centos7 NetWitness version 11.2
description: "Issue\nHow to recover root password in Centos7 NW version 11.2?\n\nResolution\nPower up / reboot	The first step is to power up or reboot the system and ed"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/how-to-recover-root-password-in-centos7-netwitness-version-11-2#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# How to recover root password in Centos7 NetWitness version 11.2

#### Issue

How to recover root password in Centos7 NW version 11.2?

#### Resolution

1. **Power up / reboot**  
    The first step is to power up or reboot the system and edit the grub2 parameters. Timing here is critical. You must press ‘e’ before the menu times out and boots normally.
   
   ![passwordstep1](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/passwordstep1-500x425-4.png)
2. **Linux16**   
    Look for a line that mentions **linux16** (or **linuxefi** if you are using UEFI bios). You may need to use the arrow keys to scroll down.  At the end of the linux16 or linuxefi line, find and replace the **rhgb** **quiet** parameters with **rd.break** **enforcing=0**  
   
   ![Picture2](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture2-500x425-4.png)
3. ##### Start boot process
   
   Once you have edited the parameters accordingly, hit CTRL-X to start the boot process with the new parameters. The system should boot into the root system.
   
   ![Picture5](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture5-4.png)
4. ##### Remount as read/write
   
   Enter the following command to remount the sysroot filesystem as read/write: **mount -o remount,rw /sysroot**
   
   ![Picture6](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture6-4.png)
5. ##### chroot into sysroot
   
   Now we chroot into the sysroot, using the following command: **chroot /sysroot**
   
   ![Picture7](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture7-4.png)
6. ##### Change the password
   
   We can use the **passwd** command to change the root password.  
   ![Picture8](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture8-4.png)
7. ##### Return to switch\_root
   
   Issue the following command to bring us back to the switch\_root:/# prompt: **exit**
   
   ![Picture9](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture9-4.png)
8. ##### Remount to read-only
   
     Enter the following command to remount the sysroot filesystem as read-only once again: **mount -o remount,ro /sysroot**
   
   ![Picture10](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture10-4.png)
9. ##### Exit the session
   
   Now we can exit the session and allow the system to reboot using the following command: **exit**
   
   ![Picture12](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture12-4.png)
10. ##### Boot and login
    
    Allow the system to boot normally and login as root using the new password that you set in step 6.
    
    ![Picture13](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture13-4.png)
11. ##### Clean up
    
    We must clean things up a bit before rebooting again or doing anything else with the system. First, let’s update the /etc/shadow file by issuing the following command: **restorecon /etc/shadow**
    
    ![Picture14](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture14-4.png)
12. ##### Set SELINUX
    
    Finally, we set our SELINUX back to enforcing mode by issuing the following command: **setenforce 1**
    
    ![Picture15](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/Picture15-4.png)

#### Product Details

**RSA Product Set:** NetWitness Logs & Network   
**RSA Product/Service Type:** Security Analytics Server   
**RSA Version/Condition:** 11.2.0.1   
**Platform:** CentOS   
**O/S Version:** 7

#### Approval Reviewer Queue

RSA NetWitness Suite Approval Queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.