NetWorker:以「root」或「系統管理員」命令提示字元登入時,nsr 命令會失敗。

Summary: 在以 root 身分登入,或從系統管理員命令提示字元執行 nsr 命令時,nsr 命令會失敗。

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.

Symptoms

在以 root 身分登入,或從系統管理員命令提示字元執行 nsr 命令時,nsr 命令會失敗。
使用 nsrlogin 登入後的 nsr 命令運作正常。

例如:

nsraddadmin -H <authc server> -P 9090
134747:nsraddadmin: Bad resource file.

nsraddadmin -H <NetWorker server> -P 9090
88924:nsraddadmin: Cannot connect to resource database: Unable to set user privileges based on user token for root on <NetWorker server>: Failed to validate security token.

root> nsraddadmin -u <user@NetWorker server>
nsraddadmin: Cannot connect to resource database: Unable to set user privileges based on user token for root on <NetWorker server>: Failed to validate security token.

Cause

這可能是因為使用者先前發出 nsrlogin 而未執行 nsrlogout 所造成。來自先前 nsrlogin 工作階段的過時權杖存在於 NetWorker 伺服器的 /nsr/tmp/sec/tokens 中。

Resolution

執行 nsrlogout 以清除權杖。如果仍有任何權杖,請將檔案從 /nsr/tmp/sec/tokens 移至其他目錄 (例如 /tmp),或刪除檔案。

 

不需要重新啟動 NetWorker 伺服器/服務。

 

使用 nsrlogin 執行 NetWorker 工作後,完成後請執行 nsrlogout 。以 root 或從系統管理員提示字元執行 NetWorker 命令時,不需要 nsrlogin

Affected Products

NetWorker Family, NetWorker
Article Properties
Article Number: 000224499
Article Type: Solution
Last Modified: 10 Oct 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.