summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-January/001961.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-sysadm/2011-January/001961.html
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-1be510f9529cb082f802408b472a77d074b394c0.tar
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.gz
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.bz2
archives-1be510f9529cb082f802408b472a77d074b394c0.tar.xz
archives-1be510f9529cb082f802408b472a77d074b394c0.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-January/001961.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-January/001961.html121
1 files changed, 121 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-January/001961.html b/zarb-ml/mageia-sysadm/2011-January/001961.html
new file mode 100644
index 000000000..937514962
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2011-January/001961.html
@@ -0,0 +1,121 @@
+<!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=%3C20110112172834.GJ21938%40mars-attacks.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="001955.html">
+ <LINK REL="Next" HREF="001953.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [765] add bcd module</H1>
+ <B>nicolas vigier</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B765%5D%20add%20bcd%20module&In-Reply-To=%3C20110112172834.GJ21938%40mars-attacks.org%3E"
+ TITLE="[Mageia-sysadm] [765] add bcd module">boklm at mars-attacks.org
+ </A><BR>
+ <I>Wed Jan 12 18:28:34 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="001955.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI>Next message: <A HREF="001953.html">[Mageia-sysadm] [766] typo in filename
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1961">[ date ]</a>
+ <a href="thread.html#1961">[ thread ]</a>
+ <a href="subject.html#1961">[ subject ]</a>
+ <a href="author.html#1961">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On Wed, 12 Jan 2011, Michael Scherer wrote:
+
+&gt;<i> 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 :
+</I>&gt;<i>
+</I>&gt;<i> &gt; + file { &quot;/etc/sudoers.d/bcd&quot;:
+</I>&gt;<i> &gt; + owner =&gt; root,
+</I>&gt;<i> &gt; + group =&gt; root,
+</I>&gt;<i> &gt; + mode =&gt; 440,
+</I>&gt;<i> &gt; + content =&gt; template(&quot;bcd/sudoers.bcd&quot;)
+</I>&gt;<i> &gt; + }
+</I>&gt;<i> &gt; + }
+</I>&gt;<i>
+</I>&gt;<i> Micro optimisation I guess, but maybe we could do a define for that :
+</I>&gt;<i>
+</I>&gt;<i> define sudoers_config($content) {
+</I>&gt;<i> file { &quot;/etc/sudoers.d/$name&quot;:
+</I>&gt;<i> owner =&gt; root,
+</I>&gt;<i> group =&gt; root,
+</I>&gt;<i> mode =&gt; 440,
+</I>&gt;<i> content =&gt; $content,
+</I>&gt;<i>
+</I>&gt;<i> }
+</I>&gt;<i> }
+</I>&gt;<i>
+</I>&gt;<i> and then :
+</I>&gt;<i>
+</I>&gt;<i> sudoers_config { &quot;bcd:&quot;
+</I>&gt;<i> content =&gt; template(&quot;bcd/sudoers.bcd&quot;)
+</I>&gt;<i> }
+</I>&gt;<i>
+</I>&gt;<i> ( less cut and paste for owner,group and mode, so less risk on error on
+</I>&gt;<i> something as critic as sudo config )
+</I>
+Good idea.
+
+&gt;<i>
+</I>&gt;<i> &gt; + define ssh_access($type, $key) {
+</I>&gt;<i> &gt; + ssh_authorized_key{$name:
+</I>&gt;<i> &gt; + type =&gt; $type,
+</I>&gt;<i> &gt; + key =&gt; $key,
+</I>&gt;<i> &gt; + user =&gt; $bcd_login,
+</I>&gt;<i> &gt; + }
+</I>&gt;<i> &gt; + }
+</I>&gt;<i>
+</I>&gt;<i> I would rather use login based access ( we do have a module for that )
+</I>&gt;<i> and let people run bcd using sudo -u bcd.
+</I>&gt;<i>
+</I>&gt;<i> And use a group of people in ldap for that.
+</I>&gt;<i> This way :
+</I>&gt;<i> - we do know who is doing iso, in case of compromission
+</I>&gt;<i> - we reuse the same ssh keys everywhere, less painful to update or
+</I>&gt;<i> remove for everybody involved
+</I>
+Ok, yes, that's better.
+
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="001955.html">[Mageia-sysadm] [765] add bcd module
+</A></li>
+ <LI>Next message: <A HREF="001953.html">[Mageia-sysadm] [766] typo in filename
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#1961">[ date ]</a>
+ <a href="thread.html#1961">[ thread ]</a>
+ <a href="subject.html#1961">[ subject ]</a>
+ <a href="author.html#1961">[ 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>