summaryrefslogtreecommitdiffstats
path: root/sudoers.d
diff options
context:
space:
mode:
authorSage Weil <sage@redhat.com>2019-11-18 02:44:08 +0100
committerSage Weil <sage@redhat.com>2019-11-21 22:34:07 +0100
commit660233935ea91244b20edf2af395e59f3fcc62c2 (patch)
tree2a20b485e595c9d47c75c011b67e13c292bb792d /sudoers.d
parentceph-daemon: use mgr/ssh command to create the ssh key (diff)
downloadceph-660233935ea91244b20edf2af395e59f3fcc62c2.tar.xz
ceph-660233935ea91244b20edf2af395e59f3fcc62c2.zip
rpm,deb: add cephdaemon user and sudoers file
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'sudoers.d')
-rw-r--r--sudoers.d/cephdaemon7
1 files changed, 7 insertions, 0 deletions
diff --git a/sudoers.d/cephdaemon b/sudoers.d/cephdaemon
new file mode 100644
index 00000000000..cac61b281a1
--- /dev/null
+++ b/sudoers.d/cephdaemon
@@ -0,0 +1,7 @@
+# allow cephdaemon user to sudo ceph-daemon
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * ls
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * unit *
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * shell *
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * deploy *
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * ceph-volume *
+cephdaemon ALL=NOPASSWD: /usr/bin/ceph-daemon --image * rm-daemon *