FAQ-通过iMana命令行添加用户和设置用户权限

发布时间:  2014-09-28 浏览次数:  151 下载次数:  0
问题描述
通过iMana命令行添加用户和设置用户权限
解决方案
说明: 
        用户名具有唯一性,如果已存在相同的用户名,系统将提示错误信息。
步骤 1 登录iMana命令行。
步骤 2 通过命令userlist查询已有的用户名及其权限。
root@BMC:/#ipmcget -d userlist
ID      Name               Privilege
1                         NO ACCESS
2       root              ADMINISTRATOR
3                         NO ACCESS
4                         NO ACCESS
5                         NO ACCESS
6                         NO ACCESS
7                         NO ACCESS
8                         NO ACCESS
9                         NO ACCESS
10                        NO ACCESS
11                        NO ACCESS
12                        NO ACCESS
13                        NO ACCESS
14                        NO ACCESS
15                        NO ACCESS
16                        NO ACCESS
17                        NO ACCESS
步骤 3 通过命令adduser添加新的用户并设置密码。
root@BMC:/#ipmcset -d adduser -v test
Input your password:****
Password:******
ConfirmPassword:******
Add user successfully.
步骤 4 通过命令privilege为新用户设置权限。
root@BMC:/#ipmcset -d privilege -v test 4
Input your password:****
Set user privilege successfully.
步骤 5 通过用户列表查询新用户信息设置。
root@BMC:/#ipmcget -d userlist
ID      Name               Privilege
1                         NO ACCESS
2       root              ADMINISTRATOR
3       test              ADMINISTRATOR
4                         NO ACCESS
5                         NO ACCESS
6                         NO ACCESS
7                         NO ACCESS
8                         NO ACCESS
9                         NO ACCESS
10                        NO ACCESS
11                        NO ACCESS
12                        NO ACCESS
13                        NO ACCESS
14                        NO ACCESS
15                        NO ACCESS
16                        NO ACCESS
17                        NO ACCESS

END