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/001961.html | 121 +++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 zarb-ml/mageia-sysadm/2011-January/001961.html (limited to 'zarb-ml/mageia-sysadm/2011-January/001961.html') 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 @@ + + + + [Mageia-sysadm] [765] add bcd module + + + + + + + + + +

[Mageia-sysadm] [765] add bcd module

+ nicolas vigier + boklm at mars-attacks.org +
+ Wed Jan 12 18:28:34 CET 2011 +

+
+ +
On Wed, 12 Jan 2011, Michael Scherer wrote:
+
+> 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 )
+
+Good idea.
+
+> 
+> > +    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
+
+Ok, yes, that's better.
+
+
+ + + + + + + + + + + + + +
+

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