From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-sysadm/2011-January/001955.html | 120 +++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/001955.html (limited to 'zarb-ml/mageia-sysadm/2011-January/001955.html') diff --git a/zarb-ml/mageia-sysadm/2011-January/001955.html b/zarb-ml/mageia-sysadm/2011-January/001955.html new file mode 100644 index 000000000..7fb634256 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2011-January/001955.html @@ -0,0 +1,120 @@ + + + + [Mageia-sysadm] [765] add bcd module + + + + + + + + + +

[Mageia-sysadm] [765] add bcd module

+ Michael Scherer + misc at zarb.org +
+ Wed Jan 12 17:52:33 CET 2011 +

+
+ +
Le mercredi 12 janvier 2011 à 17:42 +0100, root at mageia.org a écrit :
+
+> +       file { "/etc/sudoers.d/bcd":
+> +            owner => root,
+> +            group => root,
+> +            mode => 440,
+> +            content => template("bcd/sudoers.bcd")
+> +        }
+> +    }
+
+Micro optimisation I guess, but maybe we could do a define for that :
+
+define sudoers_config($content) {
+   file { "/etc/sudoers.d/$name":
+            owner => root,
+            group => root,
+            mode => 440,
+            content => $content,
+
+      }
+}
+
+and then :
+
+sudoers_config { "bcd:"
+   content => template("bcd/sudoers.bcd")
+}
+
+( less cut and paste for owner,group and mode, so less risk on error on
+something as critic as sudo config )
+
+> +    define ssh_access($type, $key) {
+> +	ssh_authorized_key{$name:
+> +		type => $type,
+> +		key => $key,
+> +		user => $bcd_login,
+> +	}
+> +    }
+
+I would rather use login based access ( we do have a module for that )
+and let people run bcd using sudo -u bcd.
+
+And use a group of people in ldap for that. 
+This way :
+- we do know who is doing iso, in case of compromission
+- we reuse the same ssh keys everywhere, less painful to update or
+remove for everybody involved
+-- 
+Michael Scherer
+
+
+ + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-sysadm +mailing list
+ -- cgit v1.2.1