From 4926a9883ec5bfc67ffc9bf2ac05da619ea1c24d Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 27 Jun 2018 15:13:11 -0500 Subject: [PATCH] sudoers.d/ceph-osd-smartctl: allow user ceph to run smartctl as root This exactly matches the incancation in OSD.cc Signed-off-by: Sage Weil --- sudoers.d/ceph-osd-smartctl | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sudoers.d/ceph-osd-smartctl diff --git a/sudoers.d/ceph-osd-smartctl b/sudoers.d/ceph-osd-smartctl new file mode 100644 index 0000000000000..a5cdb536398e9 --- /dev/null +++ b/sudoers.d/ceph-osd-smartctl @@ -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/* -- 2.39.5