diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2005-04-21 14:04:04 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2005-04-21 14:04:04 +0000 |
commit | b90838be3d089d8e9d13a5912df030bb9380f5d9 (patch) | |
tree | 76049e1538093ddc38043900d7e88cafe21eb24a /instdata.py | |
parent | 501a416edc9f220715ccba3d758ac707055072bb (diff) | |
download | anaconda-b90838be3d089d8e9d13a5912df030bb9380f5d9.tar.gz anaconda-b90838be3d089d8e9d13a5912df030bb9380f5d9.tar.xz anaconda-b90838be3d089d8e9d13a5912df030bb9380f5d9.zip |
Make anaconda-ks.cfg ro
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/instdata.py b/instdata.py index 516f0c23a..65a8da46c 100644 --- a/instdata.py +++ b/instdata.py @@ -121,8 +121,7 @@ class InstallData: self.accounts.write (instPath, self.auth) def writeKS(self, filename): - # make it so only root can read, could have password - f = open(filename, "w", 0600) + f = open(filename, "w") f.write("# Kickstart file automatically generated by anaconda.\n\n") if self.upgrade: @@ -180,6 +179,8 @@ class InstallData: f.write("\n%post\n") self.accounts.writeKScommands(f, self.auth) + # make it so only root can read, could have password + os.chmod(filename, 0600) def writePackagesKS(self, f): f.write("\n%packages") |