diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-11-02 23:30:39 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-11-02 23:30:39 +0000 |
commit | 5008f184fa10494a3672fde4525230c5450188de (patch) | |
tree | c15388bdb87c891ad23692ac2e89f98381d547ba /src/lib/Server/Plugins/SSHbase.py | |
parent | 377a82ac6c91c50144dc089c29bfe4e81df7bd35 (diff) | |
download | bcfg2-5008f184fa10494a3672fde4525230c5450188de.tar.gz bcfg2-5008f184fa10494a3672fde4525230c5450188de.tar.bz2 bcfg2-5008f184fa10494a3672fde4525230c5450188de.zip |
Second stage of the root->0 backout (from GP)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3906 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/SSHbase.py')
-rw-r--r-- | src/lib/Server/Plugins/SSHbase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py index 4bf8909de..41b58da20 100644 --- a/src/lib/Server/Plugins/SSHbase.py +++ b/src/lib/Server/Plugins/SSHbase.py @@ -130,7 +130,7 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.DirectoryBacked): for hostkey in hostkeys: entry.text += "localhost,localhost.localdomain,127.0.0.1 %s" % ( self.entries[hostkey].data) - permdata = {'owner':'root', 'group':'0', 'perms':'0644'} + permdata = {'owner':'root', 'group':'root', 'perms':'0644'} [entry.attrib.__setitem__(key, permdata[key]) for key in permdata] def build_hk(self, entry, metadata): @@ -143,7 +143,7 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin, Bcfg2.Server.Plugin.DirectoryBacked): self.logger.error("%s still not registered" % filename) raise Bcfg2.Server.Plugin.PluginExecutionError keydata = self.entries[filename].data - permdata = {'owner':'root', 'group':'0'} + permdata = {'owner':'root', 'group':'root'} permdata['perms'] = '0600' if entry.get('name')[-4:] == '.pub': permdata['perms'] = '0644' |