Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. [ceph@ceph-adm ceph-cluster]$ sudo ceph-authtool --help
  2. no command specified
  3. usage: ceph-authtool keyringfile [OPTIONS]...
  4. where the options are:
  5. -l, --list will list all keys and capabilities present in
  6. the keyring
  7. -p, --print-key will print an encoded key for the specified
  8. entityname. This is suitable for the
  9. 'mount -o secret=..' argument
  10. -C, --create-keyring will create a new keyring, overwriting any
  11. existing keyringfile
  12. -g, --gen-key will generate a new secret key for the
  13. specified entityname
  14. --gen-print-key will generate a new secret key without set it
  15. to the keyringfile, prints the secret to stdout
  16. --import-keyring will import the content of a given keyring
  17. into the keyringfile
  18. -u, --set-uid sets the auid (authenticated user id) for the
  19. specified entityname
  20. -a, --add-key will add an encoded key to the keyring
  21. --cap subsystem capability will set the capability for given subsystem
  22. --caps capsfile will set all of capabilities associated with a
  23. given key, for all subsystems
  24. [ceph@ceph-adm ceph-cluster]$ sudo ceph-authtool aa.keyring -C --gen-key -n client.me --cap osd "allow *"
  25. creating aa.keyring
  26. [ceph@ceph-adm ceph-cluster]$ sudo cat aa.keyring
  27. [client.me]
  28. key = AQD9aeFW1NFXKxAAJZQLrFc0+Bq3YedHmsxT+w==
  29. caps osd = "allow *"
  30. [ceph@ceph-adm ceph-cluster]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement