From 708bfef7d6dc745d4bf3571eb7822aa080dbef9e Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Sun, 22 Jul 2012 20:46:26 +0200 Subject: [PATCH] =?UTF-8?q?[switchs.py]=20perm=20et=20groupe=20par=20d?= =?UTF-8?q?=C3=A9faut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: 86e57557309f7a47e12d44fd6889055 darcs-hash:20120722184626-28565-17e7095f55421e6b40ddf94ff14add8ac94afdf1.gz --- gestion/gen_confs/switchs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index a20b614c..a2f6aad2 100644 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -15,6 +15,7 @@ """ import sys, os, commands, smtplib, tempfile, getopt +os.umask(0117) sys.path.append('/usr/scripts/gestion') from hptools import hpswitch, sw_chbre @@ -552,6 +553,7 @@ aaa port-access mac-based %(prise)s unauth-vid 1 my_config += self.dhcp_snooping_template fd.write(my_config % params) fd.close() + os.chown(self.CONF_REP + switch + '.conf',-1,4) if __name__ == '__main__' : opts, args = getopt.getopt(sys.argv[1:], 'hga', ['get-conf', 'help', 'all', 'header=' ])