diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000802.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2010-November/000802.html | 202 |
1 files changed, 202 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000802.html b/zarb-ml/mageia-sysadm/2010-November/000802.html new file mode 100644 index 000000000..f0a5f5ee5 --- /dev/null +++ b/zarb-ml/mageia-sysadm/2010-November/000802.html @@ -0,0 +1,202 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] [406] - rewrite restricted_shell, and split the shell in its own subclass + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B406%5D%20-%20rewrite%20restricted_shell%2C%0A%09and%20split%20the%20shell%20in%20its%20own%20subclass&In-Reply-To=%3C20101123011107.7938D3FC92%40valstar.mageia.org%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000801.html"> + <LINK REL="Next" HREF="000803.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] [406] - rewrite restricted_shell, and split the shell in its own subclass</H1> + <B>root at mageia.org</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B406%5D%20-%20rewrite%20restricted_shell%2C%0A%09and%20split%20the%20shell%20in%20its%20own%20subclass&In-Reply-To=%3C20101123011107.7938D3FC92%40valstar.mageia.org%3E" + TITLE="[Mageia-sysadm] [406] - rewrite restricted_shell, and split the shell in its own subclass">root at mageia.org + </A><BR> + <I>Tue Nov 23 02:11:07 CET 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000801.html">[Mageia-sysadm] Puppet Report for valstar.mageia.org +</A></li> + <LI>Next message: <A HREF="000803.html">[Mageia-sysadm] [407] - use pam for openssh ( I am not sure if we need to restrict its use +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#802">[ date ]</a> + <a href="thread.html#802">[ thread ]</a> + <a href="subject.html#802">[ subject ]</a> + <a href="author.html#802">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Revision: 406 +Author: misc +Date: 2010-11-23 02:11:07 +0100 (Tue, 23 Nov 2010) +Log Message: +----------- +- rewrite restricted_shell, and split the shell in its own subclass + +Modified Paths: +-------------- + puppet/modules/pam/manifests/init.pp + puppet/modules/restrictshell/manifests/init.pp + +Modified: puppet/modules/pam/manifests/init.pp +=================================================================== +--- puppet/modules/pam/manifests/init.pp 2010-11-22 23:30:59 UTC (rev 405) ++++ puppet/modules/pam/manifests/init.pp 2010-11-23 01:11:07 UTC (rev 406) +@@ -52,6 +52,7 @@ + + # for server where people can connect with ssh ( git, svn ) + class commiters_access inherits base { ++ include restricted_shell::shell + $access_class = "commiters" + } + } + +Modified: puppet/modules/restrictshell/manifests/init.pp +=================================================================== +--- puppet/modules/restrictshell/manifests/init.pp 2010-11-22 23:30:59 UTC (rev 405) ++++ puppet/modules/restrictshell/manifests/init.pp 2010-11-23 01:11:07 UTC (rev 406) +@@ -1,55 +1,55 @@ + class restrictshell { +- $allow_svn = "0" +- $allow_git = "0" +- $allow_rsync = "0" +- $allow_pkgsubmit = "0" ++ class shell { ++ file { '/usr/local/bin/sv_membersh.pl': ++ ensure => present, ++ owner => root, ++ group => root, ++ mode => 755, ++ content => template("restrictshell/sv_membersh.pl"), ++ } ++ } + +- $ldap_pwfile = "/etc/ldap.secret" ++ class base { ++ include shell ++ $allow_svn = "0" ++ $allow_git = "0" ++ $allow_rsync = "0" ++ $allow_pkgsubmit = "0" + +- class allow_svn_git_pkgsubmit { +- $allow_svn = "1" +- $allow_git = "1" +- $allow_pkgsubmit = "1" +- } ++ $ldap_pwfile = "/etc/ldap.secret" ++ file { '/etc/membersh-conf.pl': ++ ensure => present, ++ owner => root, ++ group => root, ++ mode => 755, ++ content => template("restrictshell/membersh-conf.pl"), ++ } + +- file { '/usr/local/bin/sv_membersh.pl': +- ensure => present, +- owner => root, +- group => root, +- mode => 755, +- content => template("restrictshell/sv_membersh.pl"), +- } ++ package { 'python-ldap': ++ ensure => installed, ++ } + +- file { '/etc/membersh-conf.pl': +- ensure => present, +- owner => root, +- group => root, +- mode => 755, +- content => template("restrictshell/membersh-conf.pl"), +- } ++ $pubkeys_directory = "/var/lib/pubkeys" ++ file { $pubkeys_directory: ++ ensure => directory, ++ owner => root, ++ group => root, ++ mode => 755, ++ } + +- package { 'python-ldap': +- ensure => installed, +- } ++ file { '/usr/local/bin/ldap-sshkey2file.py': ++ ensure => present, ++ owner => root, ++ group => root, ++ mode => 755, ++ content => template("restrictshell/ldap-sshkey2file.py"), ++ requires => Package['python-ldap'] ++ } ++ } + +- $pubkeys_directory = "/var/lib/pubkeys" +- file { $pubkeys_directory: +- ensure => directory, +- owner => root, +- group => root, +- mode => 755, +- } +- +- file { '/usr/local/bin/ldap-sshkey2file.py': +- ensure => present, +- owner => root, +- group => root, +- mode => 755, +- content => template("restrictshell/ldap-sshkey2file.py"), +- requires => Package['python-ldap'] +- } +- +- +- +- ++ class allow_svn_git_pkgsubmit inherits base { ++ $allow_svn = "1" ++ $allow_git = "1" ++ $allow_pkgsubmit = "1" ++ } + } +-------------- next part -------------- +An HTML attachment was scrubbed... +URL: </pipermail/mageia-sysadm/attachments/20101123/6e7a009e/attachment.html> +</PRE> + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000801.html">[Mageia-sysadm] Puppet Report for valstar.mageia.org +</A></li> + <LI>Next message: <A HREF="000803.html">[Mageia-sysadm] [407] - use pam for openssh ( I am not sure if we need to restrict its use +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#802">[ date ]</a> + <a href="thread.html#802">[ thread ]</a> + <a href="subject.html#802">[ subject ]</a> + <a href="author.html#802">[ 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> |