首页 > 代码库 > ceph简单用户管理
ceph简单用户管理
一,列出所有用户:
ceph auth list
installed auth entries:mds.ceph-node1 key: AQB/+I5ZFdcwERAAg0eP7SyDg84DZUlvKzBGuA== caps: [mds] allow caps: [mon] allow profile mds caps: [osd] allow rwxosd.0 key: AQD49o5ZCatkBBAAZ31OL9xJ78XYI6sPXb9z7A== caps: [mon] allow profile osd caps: [osd] allow *osd.1 key: AQAA945ZOLBPABAAvAWW5fg7JIfc9z0wfX0wkA== caps: [mon] allow profile osd caps: [osd] allow *osd.2 key: AQAG+I5Z4RvZGRAALVGsS6CYk1x6wVhQ2KRuOw== caps: [mon] allow profile osd caps: [osd] allow *client.admin key: AQCu845ZXt0dExAAatk28a2ILAg4XijF3ax0vg== caps: [mds] allow * caps: [mon] allow * caps: [osd] allow *client.bootstrap-mds key: AQCu845ZIYV0MRAA9e0w3Lo4KDVk6u+IoVfvdQ== caps: [mon] allow profile bootstrap-mdsclient.bootstrap-mgr key: AQCx845ZJD/wIhAAkfaCX7HsXv5yfXgVn7U0hA== caps: [mon] allow profile bootstrap-mgrclient.bootstrap-osd key: AQCu845ZPmxJHRAAH9QK4uowMrvjsUmf/qGEZg== caps: [mon] allow profile bootstrap-osdclient.bootstrap-rgw key: AQCu845Z2V0+JxAAVogbhziesxI0K+CksFauIA== caps: [mon] allow profile bootstrap-rgwclient.rgw.ceph-node2 key: AQCh+I5ZWM09OxAAE/dlTQNCy2BaZl3RvZ0aWg== caps: [mon] allow rw caps: [osd] allow rwx
二,获得指定用户的信息:
ceph auth get client.admin
[client.admin] key = AQCu845ZXt0dExAAatk28a2ILAg4XijF3ax0vg== caps mds = "allow *" caps mon = "allow *" caps osd = "allow *"
三,新增用户并输出密钥环(用途应该是加到标准密钥环文件,然后,扩散之后,整个群集可用)
ceph auth get-or-create client.george mon ‘allow r‘ osd ‘allow rw pool=ceph_data‘ -o george.keyring
[client.george] key = AQClKJBZFLAhOBAAEyKbPe79NncMe/YucS/sKg==
四,更改用户权限
ceph auth caps client.george mon ‘allow rw‘ osd ‘allow rwx pool=ceph_data‘
ceph简单用户管理
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。