Commit ef703f87 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Use 0600 permissions for the config file

Refs #1961
parent b32f00e0
......@@ -31,6 +31,8 @@
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.
import os
from collections import defaultdict
from ConfigParser import RawConfigParser, NoOptionError, NoSectionError
......@@ -112,5 +114,6 @@ class Config(RawConfigParser):
def write(self):
with open(self.path, 'w') as f:
os.chmod(self.path, 0600)
f.write(HEADER.lstrip())
RawConfigParser.write(self, f)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment