roles 指令
使用此指令可顯示或配置角色。
語法:
roles role_account[3-31] [-options]
選項 | 說明 | 值 |
---|---|---|
-n | 角色名稱 | 限制在 32 個字元內 |
-p | 設定權限 | custom:am|rca|rcvma|pr|cel|bc|nsc|ac|us
註 上面的自訂權限旗標可以任意組合使用 |
-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
提供意見回饋