分布式存储系统之Ceph集群CephX认证和授权( 六 )

提示:使用这种方式添加用户,对应信息之存在于keyring文件中,并没有存在ceph集群,我们还需要将对应keyring文件中的用户信息导入到集群上;
[root@ceph-admin ~]# ceph auth add client.usera -i client.usera.keyringadded key for client.usera[root@ceph-admin ~]# ceph auth get client.useraexported keyring for client.usera[client.usera]key = AQAIeDhjTnmLGhAAWgL3GqtJsPwmOD6CPbJO8Q==caps mon = "allow r"caps osd = "allow rw pool=rbdpool"[root@ceph-admin ~]#提示:上述命令等同ceph auth import;

经验总结扩展阅读