SCG: Recover root password on Policy Manager for Secure Connect Gateway

Summary: How to recover a lost root password.

Αυτό το άρθρο ισχύει για Αυτό το άρθρο δεν ισχύει για Αυτό το άρθρο δεν συνδέεται με κάποιο συγκεκριμένο προϊόν. Δεν προσδιορίζονται όλες οι εκδόσεις προϊόντων σε αυτό το άρθρο.

Symptoms

In the event of having the need of recovering the Root password.

 

Cause

Undocumented, unknown, or lost root password.

 

Resolution

All work in this article must be performed from within the VM Console. Before planning this change, arrange with the customer for VM Console access if you have not done so already.

  1. From within the VMware or Hyper-V interface, reboot the virtual appliance.
  2. When the splash screen appears, click the mouse in the console window and press E. This brings up the grub editor. Grub is a scripting interface for the bootloader.
  3. Use arrow keys to navigate to line containing the word 'resume', and go to the end of the line.
  4. At the end of the line, insert the following: init=/bin/bash (this change disappears after reboot)
  5. Press F10 to reboot gateway, the system should boot to the command line prompt for root in single user mode.
  6. Enter the following command: mount -o remount,rw /
  7. Enter command: mv /etc/default/passwd /etc/default/passwd.disabled
    1. If this gives an error, you will need to skip this step.
  8. Change the password by entering the following command, passwd
  9. Enter and confirm the new password.
  10. Use the VMware or Hyper-V interface to reboot the virtual appliance.
  11. Test the new password with login using the VM console or with the ssh client.

 

Screenshots:

Step 2, click your mouse in the console and press 'E' when you see this during boot:
GNU GRUB splash screen

 

Step 3, the grub editor. Use the arrow keys to move the cursor to the line that has the word "resume" in it.
GNU GRUB editor

 

Step 4, this is what the grub script should look like when you have completed your edits:
GRUB script when the edits were completed

 

Note where the cursor is after the text, "init=/bin/bash." When the edits are done, press F10 to reboot.
After the virtual appliance reboots, you should see a command prompt.
Here, you remount the disk as read/write, and then reset the password:
Reset password on the command prompt screen

 

Now use the VMware Infrastructure or Hyper-V interface to reboot the virtual appliance again.
Once the reboot is complete, log in as root using console or ssh at the prompt to verify the new password.

Επηρεαζόμενα προϊόντα

Secure Connect Gateway - Virtual Edition

Προϊόντα

Secure Connect Gateway
Ιδιότητες άρθρου
Article Number: 000204445
Article Type: Solution
Τελευταία τροποποίηση: 04 Δεκ 2025
Version:  4
Βρείτε απαντήσεις στις ερωτήσεις σας από άλλους χρήστες της Dell
Υπηρεσίες υποστήριξης
Ελέγξτε αν η συσκευή σας καλύπτεται από τις Υπηρεσίες υποστήριξης.