]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Clarify how 'ceph auth caps' works. 5546/head
authorritz303 <ritz_303@yahoo.com>
Mon, 10 Aug 2015 20:38:49 +0000 (15:38 -0500)
committerritz303 <ritz_303@yahoo.com>
Mon, 10 Aug 2015 20:38:49 +0000 (15:38 -0500)
Fixes: #11897
Signed-off-by: ritz303 <ritz_303@yahoo.com>
doc/rados/operations/user-management.rst

index 287fb333b47f21b46061a50974b10abde1b95842..47289f4c4426a7f76c1e85b9dd0c3ea07324bf77 100644 (file)
@@ -104,7 +104,7 @@ Capability syntax follows the form::
 - **Monitor Caps:** Monitor capabilities include ``r``, ``w``, ``x`` and 
   ``allow profile {cap}``. For example:: 
 
-       mon 'allow rwx`
+       mon 'allow rwx'
        mon 'allow profile osd'
 
 - **OSD Caps:** OSD capabilities include ``r``, ``w``, ``x``, ``class-read``, 
@@ -365,12 +365,15 @@ Modify User Capabilities
 ------------------------
 
 The ``ceph auth caps`` command allows you to specify a user and change the 
-user's capabilties. To add capabilities, use the form:: 
+user's capabilities. Setting new capabilities will overwrite current capabilities.
+To view current capabilities run ``ceph auth get USERTYPE.USERID``.  To add
+capabilities, you should also specify the existing capabilities when using the form:: 
 
-       ceph auth caps USERTYPE.USERID {daemon} 'allow [r|w|x|*|...] [pool={pool-name}] [namespace={namespace-name}'
+       ceph auth caps USERTYPE.USERID {daemon} 'allow [r|w|x|*|...] [pool={pool-name}] [namespace={namespace-name}]' [{daemon} 'allow [r|w|x|*|...] [pool={pool-name}] [namespace={namespace-name}]']
 
 For example:: 
 
+       ceph auth get client.john
        ceph auth caps client.john mon 'allow r' osd 'allow rw pool=liverpool'
        ceph auth caps client.paul mon 'allow rw' osd 'allow rwx pool=liverpool'
        ceph auth caps client.brian-manager mon 'allow *' osd 'allow *'