summaryrefslogtreecommitdiff
path: root/etc/sudoers.d/zfs
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2020-08-24 22:48:19 +0000
committerMatt Macy <mmacy@FreeBSD.org>2020-08-24 22:48:19 +0000
commit3b0ce0e28db46d0403929aba45c682285e1ac217 (patch)
tree91721e6e5518bd0d8113dee535898f2225443411 /etc/sudoers.d/zfs
Diffstat (limited to 'etc/sudoers.d/zfs')
-rw-r--r--etc/sudoers.d/zfs9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/sudoers.d/zfs b/etc/sudoers.d/zfs
new file mode 100644
index 000000000000..82a25ba81ec7
--- /dev/null
+++ b/etc/sudoers.d/zfs
@@ -0,0 +1,9 @@
+##
+## Allow any user to run `zpool iostat/status -c smart` in order
+## to read basic SMART health statistics for a pool.
+##
+## CAUTION: Any syntax error introduced here will break sudo.
+## Editing with 'visudo' is recommended: visudo -f /etc/sudoers.d/zfs
+##
+
+# ALL ALL = (root) NOPASSWD: /usr/sbin/smartctl -a /dev/[hsv]d[a-z0-9]*