diff options
Diffstat (limited to 'etc/sudoers.d/zfs')
| -rw-r--r-- | etc/sudoers.d/zfs | 9 |
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]* |
