Dell VxRail — 如何使用 SSH 和 RACADM 命令更改 iDRAC 用户权限

Summary: 如何使用 SSH 和 RACADM 命令更改 iDRAC 用户权限。 如果您丢失了管理员权限,我们可以通过 RACADM 使用其他 vxpsvc 管理员用户更改权限。

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

1.以 root 用户身份(即使没有管理员权限)登录 iDRAC UI 并验证用户 ID。
  • 在此示例中,我们更改测试用户的权限 ID 5。
  • 如果您没有使用 UI 登录到 iDRAC 的权限,则可以通过从主机直接使用 SSH 登录来完成。
  • 如果可以通过 UI 访问,则 ID 位于 iDRAC 设置用户选项卡中的用户旁边。

IDRAC Settings 页面的图片
  • 如果您无法访问 UI,则必须通过 SSH 登录到主机,并运行以下命令以查找用户 ID:
/opt/vxrail/tools/ipmitool user list 1
ipmitool user list 1命令的图片

2.找到用户 ID 后,使用 vxpsvc 用户直接登录 RACADM:
/opt/vxrail/bin/remotecmd -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oPubkeyAuthentication=yes -oPasswordAuthentication=no -i /etc/ssh/ssh_host_rsa_key -l vxpsvc 169.254.0.1

3.要将用户角色更改为管理员权限,请运行以下命令:
set iDRAC.Users 5 privilege 0x000001ff
  • 在这种情况下,权限0x000001ff 是管理员权限,但还有其他权限是可能的。请参阅下表文档链接:
Integrated Dell Remote Access Controller 9 RACADM CLI 指南
角色组权限和位掩码表的图片
  • 如果要比较用户之间的权限,请运行以下命令:
get iDRAC.Users 5
命令 get iDRAC 的输出图片。用户 5
 
 

Affected Products

iDRAC8, iDRAC9
Article Properties
Article Number: 000221901
Article Type: How To
Last Modified: 16 Jul 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.