跳至主要内容

roles 指令

使用此指令可顯示或配置角色。

語法:
roles role_account[3-31] [-options]

表 1. roles 選項
選項說明
-n

角色名稱

限制在 32 個字元內

-p

設定權限

custom:am|rca|rcvma|pr|cel|bc|nsc|ac|us
  • am:使用者帳戶管理存取

  • rca:遠端主控台存取

  • rcvma:遠端主控台和遠端磁碟(虛擬媒體)存取

  • pr:遠端伺服器電源/重新啟動存取

  • cel:清除事件日誌的能力

  • bc:配接器配置(基本)

  • nsc:配接器配置(網路和安全性)

  • ac:配接器配置(進階)

  • us:UEFI 安全

上面的自訂權限旗標可以任意組合使用
-d

刪除列

 
建立新角色時,如果使用者指定的角色索引已存在,則新增角色索引可能與使用者指定的索引不同。
範例:
system> roles -3 -n test -p custom:nsc|pr|bc|cel|ac
ok
system> roles
Account Role Privilege Assigned To
------- ---------------------------------- ------------------------- ------------
0 Administrator all USERID
1 ReadOnly none
2 Operator custom:nsc|pr|bc|cel|ac
3 test custom:nsc|pr|bc|cel|ac
system> roles -d test
ok
system> roles
Account Role Privilege Assigned To
------- --------------------------- ------------------------- ------------
0 Administrator all USERID
1 ReadOnly none
2 Operator custom:nsc|pr|bc|cel|ac