启用用户 命令语法 openstack user set user_name --enable 样例 openstack user set wocao --enable
首先我们把用户禁用 [root@controller ~]# openstack user set wocao --disable
查看用户列表
[root@controller ~]# openstack user list | |
---|---|
ID | Name |
06a72bdd76d247fca8328ee17360449e | admin |
0e1f815fde9b48d6b90727b5c7730478 | glance |
6836dfd555ee4df788f268948c1105b7 | neutron |
75557b1b240e4fe5bba190edb90dd8cc | placement |
93bd54058d9a4b0b94b6891cd294fc5b | wocao |
99c1e22bd4944c6a8e92b1b290b77dfc | cinder |
cffad667559c4d438310fdddfafd181b | nova |
fad5b40bac5649b4a55cdaa72b2dc086 | myuser |
查看用户详细信息已经发现是禁用状态
[root@controller ~]# openstack user show wocao | |
---|---|
Field | Value |
domain_id | default |
enabled | False |
id | 93bd54058d9a4b0b94b6891cd294fc5b |
name | wocao |
options | {} |
password_expires_at | None |
将wocao用户进行开启 [root@controller ~]# openstack user set wocao --enable
再次查看该用户信息为开启
[root@controller ~]# openstack user show wocao | |
---|---|
Field | Value |
domain_id | default |
enabled | True |
id | 93bd54058d9a4b0b94b6891cd294fc5b |
name | wocao |
options | {} |
password_expires_at | None |