From: Sage Weil Date: Wed, 27 Jun 2018 20:13:11 +0000 (-0500) Subject: sudoers.d/ceph-osd-smartctl: allow user ceph to run smartctl as root X-Git-Tag: v14.0.1~927^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4926a9883ec5bfc67ffc9bf2ac05da619ea1c24d;p=ceph.git 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 --- diff --git a/sudoers.d/ceph-osd-smartctl b/sudoers.d/ceph-osd-smartctl new file mode 100644 index 00000000000..a5cdb536398 --- /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/*