|
|
ceph dashboard ac-user-create admin admin administrator
& V3 ~% h7 V% o7 ~Error EINVAL: Please specify the file containing the password/secret with "-i" option.8 E! W( x7 Z# R4 t e# c! `
0 v2 X3 B7 ?* C0 R; o
解决办法:
1 l% W2 e6 w/ e. g" r3 Y/ i( K创建一个文件,并把密码写入其中:" i, J8 I* z/ N% z( e. Z7 H
vim /etc/ceph/dashboard_passwd.txt
3 _, ?3 g, V8 r4 u6 y5 s' l随后执行:6 R! s7 L, o* p8 n( [% G
ceph dashboard ac-user-create admin -i /etc/ceph/dashboard_passwd.txt
4 Y0 d$ w: \$ q/ p! d{"username": "admin", "lastUpdate": 1638735877, "name": null, "roles": [], "password": "$2b$12$JC1U7YCcpH4LurmjeL6Vfe8LFzXgCpDn0aEZJgw6ASVuKmpENT136", "email": null}. J5 c1 H$ @4 ~6 a* I
. U9 t+ L+ ^. w5 ]$ h1 Z4 k/ t
即可完成创建用户和密码
; C; H) a7 B9 \& n% q" i$ ?- \ |
|