Professional Documents
Culture Documents
GD - Reset Cloudpath Console Access
GD - Reset Cloudpath Console Access
GD - Reset Cloudpath Console Access
Overview
This document describes how to reset the Cloudpath service account password using Single-User mode, in the base
Linux Operating System. The service account password is used to gain console access to Cloudpath and is set when
the Virtual Machine (VM) is initially configured. If a customer loses access to the service account, the following
procedure will help regain that access. The document is broken into the following main categories
1. Cloudpath Console Access
2. Single User Mode
3. Verify Results
F IGURE 1
F IGURE 2
*Note: Prior to making any changes to the Cloudpath configuration, be sure to always create a snapshot (save
point) within the Hypervisor. This can later be used to revert to, should any anomalies occur during the given
change process (Highlighted in blue, Figure 2).
Single-User mode
You will need to set the VM into single-user mode so that you can reset the service password for Cloudpath.
Restarting the VM
Restart the VM, and once the boot process begins, wait for the GRUB boot menu to appear, and select your Kernel
version from the displayed list. Press the “e” key to edit the first boot option. (for Cloudpath the top selection will
be the kernel version that is required)
F IGURE 3
Editing the Kernel Line
Use the down arrow key to find the kernel line that starts with “linux16“, and change the argument “ro audit=1” to
“rw init=/sysroot/bin/sh” (as shown highlighted in red for both Figure 4 and 5).
F IGURE 4
F IGURE 5
Once you have finished editing the kernel line, press Ctrl -X or F10 to boot into single user mode. This provides
access to an emergency shell.
F IGURE 6
Resetting the service account password
You can the following command to reset the service account password:
• passwd cpn_service (highlighted in red, Figure 7)
F IGURE 7
Type your new password once and then again for confirmation.
Look for the message “all authentication tokens updated successfully”, to confirm that the token was updated
(highlighted in green, Figure 7).
*Note: Typically, you will see a “BAD PASSWORD” message, but this a false positive and can be ignored.
Verify Results
To apply all the changes, the VM needs to be rebooted. You can then verify console access.
Exiting single-user mode and rebooting the VM
Reboot the Virtual Machine anyway you can, follow the rest of the document for the supported process used to
restart the VM.
F IGURE 8
*Note: If you can use your UI to restart the VM, feel free to try this. In this example you must use the console to
restart the VM, not the VMware UI.
Exiting single-user mode
In this example, it was required to type the word “exit” twice until the “logout” response appeared.
F IGURE 9
Rebooting the Virtual Machine
Once the “logout” message is displayed in the console (highlighted in red, Figure 9), you are then able to run the
following command:
• reboot (highlighted in orange, Figure 9)
After typing above command, you should see the Virtual Machine restart via the console output.
Verifying Console Access
The token has now been updated and our new service password has been set. You need to verify that new service
password will allow us console access.
F IGURE 10
Try signing in using “cpn_service” account and your newly updated service password.
F IGURE 11
If login is successful, you should see the text highlighted red on Figure 11, i.e., “Type ‘?’ for Help”.
*Note: “system status” is a great command to check the status of the system. You can run this command to verify
our console access (command and results highlighted in green, Figure 11).
commscope.com
Visit our website or contact your local CommScope representative for more information.
© 2021 CommScope, Inc. All rights reserved.
Unless otherwise noted, all trademarks identified by ® or ™ are registered trademarks, respectively, of CommScope, Inc. This document is for planning
purposes only and is not intended to modify or supplement any specifications or warranties relating to CommScope products or services. CommScope is
committed to the highest standards of business integrity and environmental sustainability with a number of CommScope’s facilities across the globe certified
in accordance with international standards, including ISO9001, TL9000, ISO14001 and ISO45001. Further information regarding CommScope’s commitment can
be found at www.commscope.com/About-Us/Corporate-Responsibility-and-Sustainability.