]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
sudoers.d/ceph-osd-smartctl: allow user ceph to run smartctl as root
authorSage Weil <sage@redhat.com>
Wed, 27 Jun 2018 20:13:11 +0000 (15:13 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jun 2018 20:13:11 +0000 (15:13 -0500)
This exactly matches the incancation in OSD.cc

Signed-off-by: Sage Weil <sage@redhat.com>
sudoers.d/ceph-osd-smartctl [new file with mode: 0644]

diff --git a/sudoers.d/ceph-osd-smartctl b/sudoers.d/ceph-osd-smartctl
new file mode 100644 (file)
index 0000000..a5cdb53
--- /dev/null
@@ -0,0 +1,3 @@
+## allow ceph-osd (which runs as user ceph) to collect device health metrics
+
+ceph ALL=NOPASSWD: /usr/sbin/smartctl -a --json /dev/*