How to Reset Root Password for Command Center

How to Reset Root Password for Command Center

book

Article ID: CTX127914

calendar_today

Updated On:

Description

This article describes how to manually reset the root password for Command Center.

Requirements

Administrator access to the Command Center server.


Instructions

Complete the following steps to manually reset the root password for Command Center:

Before Versions 5.2.43 build 

  1. Stop the Command Center server through the "Shutdown Citrix Command Center Server" icon.
    You can use the following command on Linux:
    service NSCCService stop

  2. Open file explorer and navigate to <Command Center root>\conf.
    The following is the location to find the Root Directory on a Linux version of Command Center:
    cd /opt/Citrix/Citrix_Command_Center

  3. Edit the Securitydbdata.xml file to change the root password to known encryption key, such as, "b96u1ae9J" for public:
    < USER-PASSWD> <DATA ownername="NULL" password="b96u1ae9J" username="root"/></USER-PASSWD>

  4. Save the file.

  5. Back up NmsProcessesBE.conf file. Search for the process "com.adventnet.nms.security.authorization.NmsAuthManager”" in the file and change the parameter "persist_data_in_XML" to true.

  6. Start Command Center server using the following command on Linux:
    service NSCCService start
    You must now be able to log on with root as username and public as password.

  7. Stop Command Center server.

  8. Replace the NmsProcessesBE.conf with the file which was backed up in Step 4.

  9. Start Command Center server.


From version 5.2.43 onwards 

The above mentioned procedure only works with the older command center firmware versions. From Command Center 5.2 Build 45.4 the password encryption method changed and changes made to the Securitydbdata.xml password doesn't works. 
 

  1. Stop the Command Center server through the "Shutdown Citrix Command Center Server" icon.
    You can use the following command on Linux:
    service NSCCService stop

  2. Open file explorer and navigate to <Command Center root>\conf.
    The following is the location to find the Root Directory on a Linux version of Command Center:
    cd /opt/Citrix/Citrix_Command_Center

  3. Copy securitydbData.xml.bkup from <CC_HOME>\conf\CCbackup to <CC_HOME>\conf. Change the extension to  securitydbData.xml (remove .bkup extension)

  4. Save the file.

  5. Back up NmsProcessesBE.conf file. Search for the process "com.adventnet.nms.security.authorization.NmsAuthManager”" in the file and change the parameter "persist_data_in_XML" to true.

  6. Start Command Center server using the following command on Linux:
    service NSCCService start
    You must now be able to log on with root as username and public as password.

  7. Stop Command Center server.

  8. Replace the NmsProcessesBE.conf with the file which was backed up in Step 4.

  9. Start Command Center server.
  10. Important thing to note this change will remove the existing groups/users configured on the Command Center. 

 

    Environment

    The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

    Issue/Introduction

    This article describes how to manually reset the root password for Command Center.

    Additional Information

    CTX203206 - How to Reset the Password on Command Center Using Factory Reset