diff --git a/bin/tools/config.py b/bin/tools/config.py index e8e3e19060c..703c2fdafe6 100644 --- a/bin/tools/config.py +++ b/bin/tools/config.py @@ -346,6 +346,7 @@ class configmanager(object): os.makedirs(os.path.dirname(self.rcfile)) try: p.write(file(self.rcfile, 'w')) + os.chmod(self.rcfile, 0600) except IOError: sys.stderr.write("ERROR: couldn't write the config file\n")