summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Account.py
diff options
context:
space:
mode:
authorDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-02 23:59:22 +0000
committerDaniel Joseph Barnhart Clark <dclark@pobox.com>2007-07-02 23:59:22 +0000
commitde8f56862bed763aaced871a825192619fa0edac (patch)
treed0247261f443d465d11c249c0823f86fc99fb71e /src/lib/Server/Plugins/Account.py
parent495cc8ba508c4a13c8f8822fbd0aa51c6f4e1356 (diff)
downloadbcfg2-de8f56862bed763aaced871a825192619fa0edac.tar.gz
bcfg2-de8f56862bed763aaced871a825192619fa0edac.tar.bz2
bcfg2-de8f56862bed763aaced871a825192619fa0edac.zip
Power about to die can't find adapter may work or not...
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3409 ce84e21b-d406-0410-9b95-82705330c041
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()]