Skip to content

Commit

Permalink
Merge pull request ceph#5546 from ritz303/wip-doc-11897
Browse files Browse the repository at this point in the history
doc: Clarify how 'ceph auth caps' works.

Reviewed-by: John Wilkins <[email protected]>
  • Loading branch information
John Wilkins committed Aug 11, 2015
2 parents db55527 + 65e8f19 commit f3330a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/rados/operations/user-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``,
Expand Down Expand Up @@ -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 *'
Expand Down

0 comments on commit f3330a1

Please sign in to comment.