In the following recipe, we will discuss more Ceph user management by running some commands:
- To list the users in your cluster, execute the following command:
# ceph auth list
The output of this command shows that for each daemon type, Ceph creates a user with different capabilities. It also lists the client.admin user, which is the cluster admin user.
- To retrieve a specific user, for example, client.admin, execute the following:
# ceph auth get client.admin
- Create a user, client.rbd:
# ceph auth get-or-create client.rbd
This will create the user, client.rbd, with no capabilities, and a user with no caps is of no use.
- Add capabilities to the client.rbd user and list the user's capabilities: