NetWorker:当以根用户或管理员命令提示符登录时,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, NetWorkerArticle 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.