SCG:如何在安全连接网关版本 5.x 上重置 Linux 根密码

Summary: 本文介绍了在安全连接网关上访问单用户模式以重置 root 密码的过程。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

此过程适用于 VMware 和 Hyper-V 版本的安全连接网关。

1.   打开安全连接网关虚拟机的虚拟机控制台(如果尚未执行此作)。VMware 上的 Web 控制台在重新启动期间往往会断开连接。您可能需要快速移动以开始重新启动,然后打开 Web 控制台。
2.   使用虚拟机管理程序界面重新启动安全连接网关虚拟机。
3.   当您看到 SUSE 启动画面或引导菜单屏幕时,键入字母 e,请参见以下示例:


安全连接网关,启动时出现启动画面。

4.按字母 e 后,您会看到下面的 Grub 引导编辑器:

Grub 提示符。

5. 使用键盘上的箭头键进行导航。从 linux 开始,在行末尾添加 init=/sysroot/bin/sh。请参阅下面的示例:

添加 init 参数。

6. 按 ctl+x 或按 F10 重新启动网关。
7. 控制台将引导至单用户模式并进入 shell 提示符。
8.    按 Enter键继续:


单用户模式

9. 键入 mount -o remount,rw /sysroot/ 
10 键入 chroot /sysroot/ 
11 键入 passwd 
12 输入新的 root 密码。
13 确认新密码。


根密码重置

13 键入 exit 
14 键入 reboot(如果 reboot 命令不起作用,请使用虚拟机管理程序界面重新启动网关)
15 使用新密码登录以进行测试。

Affected Products

ScaleIO, Secure Connect Gateway - Virtual Edition
Article Properties
Article Number: 000196826
Article Type: How To
Last Modified: 16 May 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.