summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Account.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Account.py')
-rw-r--r--src/lib/Server/Plugins/Account.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Server/Plugins/Account.py b/src/lib/Server/Plugins/Account.py
index bf530af4d..96d242100 100644
--- a/src/lib/Server/Plugins/Account.py
+++ b/src/lib/Server/Plugins/Account.py
@@ -34,7 +34,7 @@ class Account(Bcfg2.Server.Plugin.Plugin):
fname = entry.attrib['name'].split('/')[-1]
entry.text = self.repository.entries["static.%s" % (fname)].data
entry.text += self.repository.entries["dyn.%s" % (fname)].data
- perms = {'owner':'root', 'group':'root', 'perms':'0644'}
+ perms = {'owner':'root', 'group':'0', 'perms':'0644'}
[entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()]
def gen_limits_cb(self, entry, metadata):
@@ -43,7 +43,7 @@ class Account(Bcfg2.Server.Plugin.Plugin):
superusers = self.repository.entries["superusers"].data.split()
useraccess = [line.split(':') for line in self.repository.entries["useraccess"].data.split()]
users = [user for (user, host) in useraccess if host == metadata.hostname.split('.')[0]]
- perms = {'owner':'root', 'group':'root', 'perms':'0600'}
+ perms = {'owner':'root', 'group':'0', 'perms':'0600'}
[entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()]
entry.text += "".join(["%s hard maxlogins 1024\n" % uname for uname in superusers + users])
if "*" not in users:
@@ -56,7 +56,7 @@ class Account(Bcfg2.Server.Plugin.Plugin):
superusers += [user for (user, host) in rootlike if host == metadata.hostname.split('.')[0]]
rdata = self.repository.entries
entry.text = "".join([rdata["%s.key" % user].data for user in superusers if rdata.has_key("%s.key" % user)])
- perms = {'owner':'root', 'group':'root', 'perms':'0600'}
+ perms = {'owner':'root', 'group':'0', 'perms':'0600'}
[entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()]
def gen_sudoers(self, entry, metadata):
@@ -66,5 +66,5 @@ class Account(Bcfg2.Server.Plugin.Plugin):
superusers += [user for (user, host) in rootlike if host == metadata.hostname.split('.')[0]]
rdata = self.repository.entries
entry.text = self.repository.entries['static.sudoers'].data%",".join(superusers)
- perms = {'owner':'root', 'group':'root', 'perms':'0400'}
+ perms = {'owner':'root', 'group':'0', 'perms':'0400'}
[entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()]