-
-
Save therevoman/da1ab40720f6227a37a4 to your computer and use it in GitHub Desktop.
/etc/sudoers.d/zfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow read-only ZoL commands to be called through sudo without a password. | |
# Cmnd alias specification | |
Cmnd_Alias RO_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 in the zfsusers group to use basic read-only ZFS commands. | |
%zfsusers ALL=NOPASSWD: RO_ZFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment