1 $ ceph-authtool kring --create-keyring --gen-key --mode 0644
4 $ ceph-authtool --cap osd 'allow rx pool=swimming' kring
5 $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
6 \tcaps osd = "allow rx pool=swimming" (esc)
8 # TODO it seems --cap overwrites all previous caps; is this wanted?
9 $ ceph-authtool --cap mds 'allow' kring
10 $ ceph-authtool kring --list|grep -E '^[[:space:]]caps '
11 \tcaps mds = "allow" (esc)