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

Also available in: Atom PDF