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";

警告:由於此過程重置至少一個數據區的中央和通用管理員帳戶,因此管理員應避免使用它。NetWorker 設定後,AuthC 可確保真正的驗證。設定使用者帳戶或整合 AD/LDAP,以進行可追蹤的 NetWorker 活動。此知識文章中的其他資訊欄位包含知識資源的連結,以將 AD 或輕量型目錄存取通訊協定 (LDAP) 與 NetWorker 整合。

重設系統管理員密碼

注意:當現有系統管理員密碼已到期或未知時,可使用下列程序。如果知道目前的系統管理員密碼且需要變更,請參閱:NetWorker:如何變更系統管理員帳戶或任何本機 NetWorker 使用者帳戶的密碼
  1. 若要重設系統管理員密碼,請在包含 Base64 編碼格式新密碼的 NetWorker 伺服器上建立 JSON 檔案。此程序在 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 檔案中,請執行下列步驟:

一個。將使用者名稱變數替換為管理員。
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. 從根命令提示字元執行:
nsr_shutdown
systemctl start networker
  1. NetWorker Authentication Service 啟動時,啟動程序會檢查 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.