NetWorker:如何重置管理员密码

Summary: 本文概述了如何重置 NetWorker 管理员帐户密码。

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

当 NetWorker 服务器位于 Linux 上时如何重置管理员密码:


此视频也可在 YouTube本超链接将引导您访问非 Dell Technologies 运营的网站。上找到。

当 NetWorker 服务器位于 Windows 上时如何重置管理员密码:

此视频也可在 YouTube本超链接将引导您访问非 Dell Technologies 运营的网站。上找到。
 

NetWorker 身份验证

管理员密码在 NetWorker 身份验证数据库中配置。身份验证 (authc) 服务器通常与 NetWorker 服务器相同,但它可以从单个主机管理多个 NetWorker 服务器。

识别其 NetWorker 服务器 authc 如果一个 NMC 服务器管理多个 NetWorker 服务器,则服务器 NMC 将用于身份验证。在 NMC 服务器上,检查 gstd.conf 文件,用于 authsvc_hostname

  • Windows: C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf
  • Linux: /opt/lgtonmc/etc/gstd.conf
[root@nmcserver ~]# cat /opt/lgtonmc/etc/gstd.conf | grep hostname
    string authsvc_hostname = "nwserver-a1.amer.lan";

警告:由于此过程会重置至少一个数据区的中央和通用管理员帐户,因此管理员应避免使用它。AuthC 可确保在 NetWorker 设置后进行真正的身份验证。为可跟踪的 NetWorker 活动配置用户帐户或集成 AD/LDAP。本知识库文章的“其他信息”字段包含有关将 AD 或轻量级目录访问协议 (LDAP) 与 NetWorker 集成的知识资源的链接。

重置管理员密码

提醒:当现有管理员密码已过期或未知时,可以使用以下过程。如果当前管理员密码已知并且需要更改,请参阅:NetWorker:如何更改管理员帐户或任何本地 NetWorker 用户帐户的密码
  1. 要重置管理员密码,请在 NetWorker 服务器上创建一个 JSON 文件,其中包含 Base64 编码格式的新密码。此过程在 Linux 和 Windows作系统上有所不同,仅遵循适用于验证服务器作系统的过程。

Windows 身份验证服务器

  1. 在身份验证服务器上,创建一个文本文件,并在一行中以明文形式指定密码值。例如,创建一个名为 mypassword_in.txt. 此文件的内容是“1.密码”。
提醒:这是临时密码。设置密码后,可以从 NetWorker Management Console 更改此值。 
  1. 在目录中打开管理员命令提示符 mypassword_in.txt 文件已创建。
  2. 使用 certutil.exe 命令为密码值创建 Base64 编码密码,该密码值在 mypassword_in.txt 文件中定义。例如:
certutil.exe -encode mypassword_in.txt mypassword_out.txt

应创建包含 1.Password 的 base64 编码值的 mypassword_out.txt 文件的内容。例如:

-----BEGIN CERTIFICATE-----
MS5QYXNzd29yZA==
-----END CERTIFICATE-----

Linux 身份验证服务器

  1. 在身份验证服务器上,运行以下命令:
echo -n '1.Password' | base64
提醒:这是临时密码。设置密码后,可以从 NetWorker Management Console 更改此值。密码必须使用单引号括起来;如果不使用引号,特殊字符可能无效。 
 
该命令返回纯文本密码的 base64 编码值。例如:
MS5QYXNzd29yZA==
  1. 创建 authc-local-config.json.template 文件,位于:

Windows: C:\Program Files\EMC NetWorker\nsr\authc-server\scripts\authc-local-config.json.template
Linux: /opt/nsr/authc-server/scripts/authc-local-config.json.template

  1. authc-local-config.json.template.copy 文件中,请执行以下步骤:

一个。将 username变量替换为 Administrator。
b.b. 将 encoded_password 变量替换为 base64 编码的密码值。例如:

{
"local_users": [
{
"user name": "administrator",
"password": "MS5QYXNzd29yZA=="
}]
}
  1. 重命名 authc-local-config.json.template.copy 文件复制到 authc-local-config.json
  2. 复制 authc-local-config.json 文件复制到 Tomcat conf 文件夹。默认情况下,conf 文件夹位于:

Windows: C:\Program Files\EMC NetWorker\authc-server\tomcat\conf\authc-local-config.json

Linux: /nsr/authc/conf/authc-local-config.json

Linux 身份验证服务器

  1. 更改权限 authc-local-config.json 文件中:
chmod 755 /nsr/authc/conf/authc-local-config.json
提醒:如果未更改权限,authc-server.log将显示一个错误,指示没有打开该文件所需的权限。无需在 Windows 身份验证服务器上进行任何更改。 
  1. 停止然后启动 NetWorker 服务器上的服务:

Windows 身份验证服务器

  1. 在管理命令提示符下,运行
net stop nsrexecd /y
net start nsrd

如果 NetWorker 服务器也是 NMC 服务器,请启动 NMC 服务器服务。键入以下命令: net start gstd

Linux 身份验证服务器

  1. 从 root 命令提示符运行:
nsr_shutdown
systemctl start networker
  1. NetWorker 身份认证服务启动时,启动进程会检查 authc-local-config.json。如果文件存在并且密码符合为密码定义的密码策略要求,NetWorker 身份认证服务将重置密码。查看 authc-server.log 文件所在的位置:

Windows: C:\Program Files\EMC NetWorker\authc\tomcat\logs
Linux: /nsr/authc/logs

提醒:NetWorker 安全配置指南中记录了密码要求: https://www.dell.com/support/product-details/product/networker/docs 启动过程会自动删除 authc-local-config.json 文件,以确保下次启动 NetWorker 身份认证服务时不会重置密码。 
  1. 使用 authc_mgmt 命令来执行 authc 验证使用新密码的身份验证是否成功的服务器:
authc_mgmt -u administrator -p "1.Password" -e find-all-users

例如:

authc_mgmt -u administrator -p "1.Password" -e find-all-users
The query returns 2 records.
User Id User Name
1000 administrator
1001 svc_nmc_networker

9.使用新密码登录 NetWorker Management Console。

Additional Information

Affected Products

NetWorker, NetWorker Management Console

Products

NetWorker Management Console
Article Properties
Article Number: 000014714
Article Type: How To
Last Modified: 02 Oct 2025
Version:  12
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.