summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2008-06-15 18:18:34 +0000
committerNarayan Desai <desai@mcs.anl.gov>2008-06-15 18:18:34 +0000
commitbd5b1b924d070ebcf21601f63f9bf4313df576e9 (patch)
tree70a1dd809d2c5714adb40a9b887190445ff1ba5b
parent78a997d2c4826d651630aeed7c8d00895b5733de (diff)
downloadbcfg2-bd5b1b924d070ebcf21601f63f9bf4313df576e9.tar.gz
bcfg2-bd5b1b924d070ebcf21601f63f9bf4313df576e9.tar.bz2
bcfg2-bd5b1b924d070ebcf21601f63f9bf4313df576e9.zip
Fixup perms on bcfg2.conf upon init
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4696 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Admin/Init.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py
index c78750009..f8cc7662b 100644
--- a/src/lib/Server/Admin/Init.py
+++ b/src/lib/Server/Admin/Init.py
@@ -134,6 +134,7 @@ class Init(Bcfg2.Server.Admin.Mode):
try:
open(configfile, "w").write(confdata)
+ os.chmod(configfile, '0600')
except:
# FIXME how to handle
print "Failed to write configuration file to '%s'\n" % configfile