[Pkg-zfsonlinux-devel] [PATCH 3/4] Uncomment the sudoers example
Richard Laager
rlaager at wiktel.com
Sun Sep 15 07:18:26 UTC 2013
There's no need for this file to be commented out, as it has no effect
anyway. This way, the user doesn't need to modify it if they want this
behavior.
---
debian/examples/zfsutils/etc/sudoers.d/zfs | 34 ++++++++++++++++------------
1 file changed, 20 insertions(+), 14 deletions(-)
diff --git a/debian/examples/zfsutils/etc/sudoers.d/zfs b/debian/examples/zfsutils/etc/sudoers.d/zfs
index 24dd8e7..ae5f605 100644
--- a/debian/examples/zfsutils/etc/sudoers.d/zfs
+++ b/debian/examples/zfsutils/etc/sudoers.d/zfs
@@ -1,14 +1,20 @@
-## Allow read-only ZoL commands to be called through sudo
-## without a password. Remove the first '#' column to enable.
-##
-#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
-#
-#ALL ALL = root NOPASSWD: C_ZFS
+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 read-only ZFS commands to be called through sudo without a password.
+ALL ALL = (root) NOPASSWD: C_ZFS
--
1.7.9.5
More information about the Pkg-zfsonlinux-devel
mailing list