summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/001955.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/001955.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-January/001955.html120
1 files changed, 120 insertions, 0 deletions
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 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [765] add bcd module
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B765%5D%20add%20bcd%20module&In-Reply-To=%3C1294851153.32187.385.camel%40akroma.ephaone.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="001952.html">
+ <LINK REL="Next" HREF="001961.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [765] add bcd module</H1>
+ <B>Michael Scherer</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B765%5D%20add%20bcd%20module&In-Reply-To=%3C1294851153.32187.385.camel%40akroma.ephaone.org%3E"
+ TITLE="[Mageia-sysadm] [765] add bcd module">misc at zarb.org
+ </A><BR>
+ <I>Wed Jan 12 17:52:33 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001952.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI>Next message: <A HREF="001961.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1955">[ date ]</a>
+ <a href="thread.html#1955">[ thread ]</a>
+ <a href="subject.html#1955">[ subject ]</a>
+ <a href="author.html#1955">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Le mercredi 12 janvier 2011 &#224; 17:42 +0100, <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> a &#233;crit :
+
+&gt;<i> + file { &quot;/etc/sudoers.d/bcd&quot;:
+</I>&gt;<i> + owner =&gt; root,
+</I>&gt;<i> + group =&gt; root,
+</I>&gt;<i> + mode =&gt; 440,
+</I>&gt;<i> + content =&gt; template(&quot;bcd/sudoers.bcd&quot;)
+</I>&gt;<i> + }
+</I>&gt;<i> + }
+</I>
+Micro optimisation I guess, but maybe we could do a define for that :
+
+define sudoers_config($content) {
+ file { &quot;/etc/sudoers.d/$name&quot;:
+ owner =&gt; root,
+ group =&gt; root,
+ mode =&gt; 440,
+ content =&gt; $content,
+
+ }
+}
+
+and then :
+
+sudoers_config { &quot;bcd:&quot;
+ content =&gt; template(&quot;bcd/sudoers.bcd&quot;)
+}
+
+( less cut and paste for owner,group and mode, so less risk on error on
+something as critic as sudo config )
+
+&gt;<i> + define ssh_access($type, $key) {
+</I>&gt;<i> + ssh_authorized_key{$name:
+</I>&gt;<i> + type =&gt; $type,
+</I>&gt;<i> + key =&gt; $key,
+</I>&gt;<i> + user =&gt; $bcd_login,
+</I>&gt;<i> + }
+</I>&gt;<i> + }
+</I>
+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
+
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001952.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI>Next message: <A HREF="001961.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1955">[ date ]</a>
+ <a href="thread.html#1955">[ thread ]</a>
+ <a href="subject.html#1955">[ subject ]</a>
+ <a href="author.html#1955">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>