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

요약: How to recover a lost root password.

이 문서는 다음에 적용됩니다. 이 문서는 다음에 적용되지 않습니다. 이 문서는 특정 제품과 관련이 없습니다. 모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.

증상

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

 

원인

Undocumented, unknown, or lost root password.

 

해결

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
문서 속성
문서 번호: 000204445
문서 유형: Solution
마지막 수정 시간: 04 12월 2025
버전:  4
다른 Dell 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.