homeserver/roles/mgrote.zfs_tools/templates/sudoers_zfs
Quotengrote c0395aadcb
zfs für non-root User + visudo (#54)
* ZFS Commands RO für non-Root-User angelegt

* Visudo für alle Tasks die in /etc/sudoers.d arbeiten

* linter 201
2020-10-23 12:53:30 +02:00

18 lines
649 B
Text

# Allow read-only ZoL commands to be called through sudo
# without a password. Remove the first '#' column to enable.
#
# CAUTION: Any syntax error introduced here will break sudo.
#
# Cmnd alias specification
Cmnd_Alias C_ZFS = \
/sbin/zfs "", /sbin/zfs help *, \
/sbin/zfs get, /sbin/zfs get *, \
/sbin/zfs list, /sbin/zfs list *, \
/sbin/zpool "", /sbin/zpool help *, \
/sbin/zpool iostat, /sbin/zpool iostat *, \
/sbin/zpool list, /sbin/zpool list *, \
/sbin/zpool status, /sbin/zpool status *, \
/sbin/zpool upgrade, /sbin/zpool upgrade -v
#
# allow any user to use basic read-only ZFS commands
ALL ALL = (root) NOPASSWD: C_ZFS