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=' ])