Project

General

Profile

Actions

Feature #38370

closed

ceph CLI ability to change file ownership

Added by Sébastien Han about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous, mimic
Reviewed:
Affected Versions:
Component(RADOS):
Pull request ID:

Description

When creating/fetching a key/monmap/crushmap it might be useful (especially for file used by a process later) to apply the right permission at request time.
The idea is to implement the --setuser and --setgroup flag that get be used like this:

[root@ceph-nano-test-faa32aebf00b /]# ceph --setuser ceph --setgroup ceph -n mon. -k /var/lib/ceph/mon/ceph-ceph-nano-test-faa32aebf00b/keyring auth get-or-create osd.3 mon "allow profile osd" osd "allow *" mgr "allow profile osd" -o /var/lib/ceph/osd/ceph-1/les222
[root@ceph-nano-test-faa32aebf00b /]# ls -al /var/lib/ceph/osd/ceph-1/les222
-rw-r--r--. 1 ceph ceph 56 Feb 18 18:16 /var/lib/ceph/osd/ceph-1/les222

Related issues 2 (0 open2 closed)

Copied to RADOS - Backport #38510: luminous: ceph CLI ability to change file ownershipResolvedPrashant DActions
Copied to RADOS - Backport #38511: mimic: ceph CLI ability to change file ownershipResolvedPrashant DActions
Actions #1

Updated by Sébastien Han about 5 years ago

  • Assignee set to Sébastien Han
Actions #2

Updated by Sébastien Han about 5 years ago

  • Pull request ID set to 26487
Actions #3

Updated by Greg Farnum about 5 years ago

  • Project changed from Ceph to RADOS
  • Status changed from New to Fix Under Review
Actions #4

Updated by Sébastien Han about 5 years ago

  • Backport set to luminous, mimic
Actions #5

Updated by Sage Weil about 5 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #38510: luminous: ceph CLI ability to change file ownership added
Actions #7

Updated by Nathan Cutler about 5 years ago

  • Copied to Backport #38511: mimic: ceph CLI ability to change file ownership added
Actions #8

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF