## 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