aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/etc/sudoers.d/zfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/openzfs/etc/sudoers.d/zfs')
-rw-r--r--sys/contrib/openzfs/etc/sudoers.d/zfs9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/contrib/openzfs/etc/sudoers.d/zfs b/sys/contrib/openzfs/etc/sudoers.d/zfs
new file mode 100644
index 000000000000..82a25ba81ec7
--- /dev/null
+++ b/sys/contrib/openzfs/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]*