From 241af1d0e473953de3a35743203a19cae550417a Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Mon, 7 Sep 2015 16:41:23 +0200 Subject: [PATCH] rsyncd: autorise rsync de /pubftp depuis campus --- Python/etc/rsyncd.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Python/etc/rsyncd.conf b/Python/etc/rsyncd.conf index ade48fa..822a4ae 100644 --- a/Python/etc/rsyncd.conf +++ b/Python/etc/rsyncd.conf @@ -1,5 +1,7 @@ # -*- coding: utf-8; mode: python -*- +import gestion.config as config + include("secrets") include("ip") include("backups") @@ -51,3 +53,11 @@ secrets file = /etc/crans/secrets/rsyncd.secrets hosts allow = babar.adm.crans.org %(ip)s""" % { 'name' : name, 'path' : path, 'ip' : ip }) + +if has("main-ftp-server"): + out(""" +[ftp] +path = /pubftp +read only +hosts allow = %s +""" % config.plage_ens)