# $Header: /global/src/etc/cl-manage-scripts/patches/RCS/P-sudoers-cl-asuser,v 1.3 2025/03/21 15:19:26 mas90 Exp $
# patch-file matches : cl-asuser
# Process using /usr/bin/cl-patch-file unless matching the above
--- /etc/sudoers	2006-08-25 22:35:18.000000000 +0100
+++ /etc/sudoers	2006-07-13 09:13:38.000000000 +0100
@@ -22,2 +22,6 @@
                         _XKB_CHARSET"
+
+# cl.cam.ac.uk - commands such as asuser need the user groups preserved
+# cl.cam.ac.uk - (the default used to be to do it by default, for root only)
+Defaults preserve_groups
 
@@ -60,1 +60,3 @@
 
+# cl.cam.ac.uk - "user" of machine can do some extra things
+ALL	ALL=NOPASSWD: /usr/bin/cl-asuser
